Commit 8f7431400a67c4844240f875ebd7e4bcb3332633
Committed by
Albert ARIBAUD
1 parent
13b178edc2
Exists in
master
and in
55 other branches
arm, davinci: Fix build warnings for cam_enc_4xx
This patch fixes a build warning for the cam_enc_4xx board introduced by commit d6ec0c0dfc70447cf615ae80a952da81f73f16b4: spl.c:35:13: warning: 'gdata' defined but not used spl.c:36:13: warning: 'bdata' defined but not used Signed-off-by: Christian Riesch <christian.riesch@omicron.at> Cc: Tom Rini <trini@ti.com> Cc: Heiko Schocher <hs@denx.de>
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
arch/arm/cpu/arm926ejs/davinci/spl.c
... | ... | @@ -29,13 +29,14 @@ |
29 | 29 | #include <malloc.h> |
30 | 30 | #include <spi_flash.h> |
31 | 31 | |
32 | -DECLARE_GLOBAL_DATA_PTR; | |
32 | +#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT | |
33 | 33 | |
34 | +DECLARE_GLOBAL_DATA_PTR; | |
34 | 35 | /* Define global data structure pointer to it*/ |
35 | 36 | static gd_t gdata __attribute__ ((section(".data"))); |
36 | 37 | static bd_t bdata __attribute__ ((section(".data"))); |
37 | 38 | |
38 | -#ifndef CONFIG_SPL_LIBCOMMON_SUPPORT | |
39 | +#else | |
39 | 40 | |
40 | 41 | void puts(const char *str) |
41 | 42 | { |