[U-Boot] [PATCH 4/6] exports.c: fix warning: 'dummy' defined but not used

Wolfgang Denk wd at denx.de
Thu Jun 24 00:06:11 CEST 2010


Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 common/exports.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/common/exports.c b/common/exports.c
index 60bba75..cbc0f49 100644
--- a/common/exports.c
+++ b/common/exports.c
@@ -3,9 +3,13 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#if (!defined(CONFIG_I386) && !defined(CONFIG_PPC)) || \
+    !defined(CONFIG_CMD_I2C) || \
+    !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