summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-19 13:12:13 +0000
committerHeiko Schocher <hs@denx.de>2011-11-23 08:14:27 +0100
commit604256a449cb61004130ce2e66863501373b2c2d (patch)
tree37922b9dfc3429c491c7c7aa902557a47f20ecda /arch/arm/cpu
parentdffc0ae86d2ec1edb26319a3c1ace57e819c0312 (diff)
downloadu-boot-imx-604256a449cb61004130ce2e66863501373b2c2d.zip
u-boot-imx-604256a449cb61004130ce2e66863501373b2c2d.tar.gz
u-boot-imx-604256a449cb61004130ce2e66863501373b2c2d.tar.bz2
arch/arm/cpu/arm926ejs/omap/cpuinfo.c: Fix GCC 4.6 warnings
Fix: cpuinfo.c: In function 'print_cpuinfo': cpuinfo.c:155:6: warning: variable 'system_serial_low' set but not used [-Wunused-but-set-variable] cpuinfo.c:154:6: warning: variable 'system_serial_high' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/arm926ejs/omap/cpuinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/cpu/arm926ejs/omap/cpuinfo.c b/arch/arm/cpu/arm926ejs/omap/cpuinfo.c
index 0052dab..02332ee 100644
--- a/arch/arm/cpu/arm926ejs/omap/cpuinfo.c
+++ b/arch/arm/cpu/arm926ejs/omap/cpuinfo.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <command.h>
+#include <linux/compiler.h>
#if defined(CONFIG_DISPLAY_CPUINFO) && defined(CONFIG_OMAP)
@@ -151,8 +152,8 @@ int print_cpuinfo (void)
u8 die_rev;
u32 omap_id;
u8 cpu_type;
- u32 system_serial_high;
- u32 system_serial_low;
+ __maybe_unused u32 system_serial_high;
+ __maybe_unused u32 system_serial_low;
u32 system_rev = 0;
jtag_id = omap_get_jtag_id();