1. 19 5月, 2020 1 次提交
  2. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  3. 03 10月, 2017 1 次提交
  4. 28 4月, 2017 1 次提交
    • L
      ext4: Fix comparision of unsigned expression with < 0 · 509b498a
      Lokesh Vutla 提交于
      In file ext4fs.c funtion ext4fs_read_file() compares an
      unsigned expression with < 0 like below
      
      	lbaint_t blknr;
      	blknr = read_allocated_block(&(node->inode), i);
      	if (blknr < 0)
      		return -1;
      
      blknr is of type ulong/uint64_t. read_allocated_block() returns
      long int. So comparing blknr with < 0 will always be false. Instead
      declare blknr as long int.
      
      Similarly ext4/dev.c does a similar comparison. Drop the redundant
      comparison.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      509b498a
  5. 15 3月, 2016 2 次提交
  6. 14 1月, 2016 1 次提交
  7. 12 9月, 2015 1 次提交
  8. 23 11月, 2014 1 次提交
  9. 20 1月, 2014 1 次提交
  10. 24 7月, 2013 1 次提交
  11. 16 7月, 2013 1 次提交
    • F
      Fix ext2/ext4 filesystem accesses beyond 2TiB · 04735e9c
      Frederic Leroy 提交于
      With CONFIG_SYS_64BIT_LBA, lbaint_t gets defined as a 64-bit type,
      which is required to represent block numbers for storage devices that
      exceed 2TiB (the block size usually is 512B), e.g. recent hard drives
      
      We now use lbaint_t for partition offset to reflect the lbaint_t change,
      and access partitions beyond or crossing the 2.1TiB limit.
      This required changes to signature of ext4fs_devread(), and type of all
      variables relatives to block sector.
      
      ext2/ext4 fs uses logical block represented by a 32 bit value. Logical
      block is a multiple of device block sector. To avoid overflow problem
      when calling ext4fs_devread(), we need to cast the sector parameter.
      Signed-off-by: NFrédéric Leroy <fredo@starox.org>
      04735e9c
  12. 24 5月, 2013 1 次提交
  13. 10 5月, 2013 1 次提交
  14. 07 12月, 2012 1 次提交
  15. 26 9月, 2012 1 次提交
  16. 21 9月, 2012 1 次提交
    • S
      ext4: cache-align buffers so the invalidation works · 55b523b7
      Stephen Warren 提交于
      DMA buffer cache invalidation requires that buffers have cache-aligned
      buffer locations and sizes. Use memalign() and ALLOC_CACHE_ALIGN_BUFFER()
      to ensure this.
      
      On Tegra at least, without this fix, the following fail commands fail in
      u-boot-master/ext4, but succeeded at the branch's branch point in
      u-boot/master. With this fix, the commands work again:
      
      ext2ls mmc 0:1 /
      ext2load mmc 0:1 /boot/zImage
      
      Cc: Uma Shankar <uma.shankar@samsung.com>
      Cc: Manjunatha C Achar <a.manjunatha@samsung.com>
      Cc: Iqbal Shareef <iqbal.ams@samsung.com>
      Cc: Hakgoo Lee <goodguy.lee@samsung.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      55b523b7
  17. 10 8月, 2012 1 次提交