[U-Boot] [PATCH 4/6 v2] exports.c: fix warning: 'dummy' defined but not used
Wolfgang Denk
wd at denx.de
Tue Jun 29 11:52:32 CEST 2010
Signed-off-by: Wolfgang Denk <wd at denx.de>
---
v2: fix compile problem for some boards.
common/exports.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/common/exports.c b/common/exports.c
index 60bba75..36321e3 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -3,9 +3,14 @@
DECLARE_GLOBAL_DATA_PTR;
+#if (!defined(CONFIG_I386) && !defined(CONFIG_PPC)) || \
+ !defined(CONFIG_CMD_I2C) || \
+ !defined(CONFIG_HAS_UID) || \
+ !defined(CONFIG_CMD_SPI)
static void dummy(void)
{
}
+#endif
unsigned long get_version(void)
{
--
1.7.0.1
More information about the U-Boot
mailing list