]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fix cmd_bdinfo.c:354: warning: 'print_eth' defined but not used
authorPhilippe De Muyter <phdm at macqel.be>
Tue, 22 Sep 2009 04:20:29 +0000 (22:20 -0600)
committerTsiChung Liew <tsicliew@gmail.com>
Wed, 24 Mar 2010 16:08:53 +0000 (11:08 -0500)
This fixes the following warnings when running MAKEALL for coldfire :
cmd_bdinfo.c:354: warning: 'print_eth' defined but not used

Signed-off-by: Philippe De Muyter <phdm at macqel.be>
common/cmd_bdinfo.c

index f8400bcc04b4a7b1d8fc637f83a90a7da9f4350b..d22eb6634a356b0a3861eba604f1841355fb438c 100644 (file)
@@ -31,7 +31,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static void print_num(const char *, ulong);
 
-#if !defined(CONFIG_ARM) || defined(CONFIG_CMD_NET)
+#if !(defined(CONFIG_ARM) || defined(CONFIG_M68K)) || defined(CONFIG_CMD_NET)
 static void print_eth(int idx);
 #endif
 
@@ -350,7 +350,7 @@ static void print_num(const char *name, ulong value)
        printf ("%-12s= 0x%08lX\n", name, value);
 }
 
-#if !defined(CONFIG_ARM) || defined(CONFIG_CMD_NET)
+#if !(defined(CONFIG_ARM) || defined(CONFIG_M68K)) || defined(CONFIG_CMD_NET)
 static void print_eth(int idx)
 {
        char name[10], *val;