u-boot/arch
Masahiro Yamada 1638d98052 sandbox: change local_irq_save() to macro
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: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Jeroen Hofstee <jeroen@myspectrum.nl>
2014-06-23 15:37:24 -06:00
..
arc ARC: enable CONFIG_SYS_BOOT_RAMDISK_HIGH 2014-06-03 16:16:57 +04:00
arm tegra: dts: Bring in GPIO bindings from linux 2014-06-20 11:56:33 -06:00
avr32 bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
blackfin blackfin: replace bfin_gen_rand_mac() with eth_random_addr() 2014-05-12 15:19:46 -04:00
m68k m68k: Remove CONFIG_CMD_BEDBUG related code 2014-06-19 11:19:06 -04:00
microblaze Makefile: Support include files for .dts files 2014-06-20 11:55:03 -06:00
mips common/board_f: Initialized global data for generic board 2014-05-12 15:20:05 -04:00
nds32 bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
nios2 bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
openrisc openrisc: fix relocation code 2014-06-05 14:44:56 -04:00
powerpc Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2014-06-05 17:38:30 -04:00
sandbox sandbox: change local_irq_save() to macro 2014-06-23 15:37:24 -06:00
sh bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
sparc bd_info: remove bi_barudrate member from struct bd_info 2014-05-12 15:19:45 -04:00
x86 x86: Enable 32-bit build using x86_64 multilib toolchain 2014-06-23 15:37:23 -06:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00