Skip to content
Snippets Groups Projects
  1. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      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: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  2. Jun 23, 2014
    • Masahiro Yamada's avatar
      sandbox: change local_irq_save() to macro · 1638d980
      Masahiro Yamada authored
      
      local_irq_save() should be a macro, not a function
      because local_irq_save() saves flag to the given argument.
      
      GCC is silent about this issue, but Clang warns:
      
      In file included from lib/asm-offsets.c:15:
      In file included from include/common.h:20:
      In file included from include/linux/bitops.h:110:
      arch/sandbox/include/asm/bitops.h:59:17:
       warning: variable 'flags' is uninitialized when used here
            [-Wuninitialized]
              local_irq_save(flags);
                             ^~~~~
      
      That change causes another warning:
      
      In file included from include/linux/bitops.h:110:0,
                       from include/common.h:20,
                       from lib/asm-offsets.c:15:
      arch/sandbox/include/asm/bitops.h: In function ‘test_and_set_bit’:
      arch/sandbox/include/asm/bitops.h:56:16: warning: unused variable ‘flags’ [-Wunused-variable]
      
      So, flags should be set to __always_unused.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      1638d980
  3. Oct 14, 2013
  4. Jul 24, 2013
  5. Oct 17, 2011
  6. Apr 13, 2010
  7. Jul 22, 2009
  8. Sep 12, 2008
  9. Oct 31, 2002
  10. Sep 08, 2002
  11. Dec 14, 2000
  12. Nov 12, 2000
Loading