]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
ARM: fix warning: 'print_eth' defined but not used
authorWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 23:54:21 +0000 (00:54 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 23:54:21 +0000 (00:54 +0100)
This warning got issued for all ARM systems that don't have
CONFIG_CMD_NET enabled.

Signed-off-by: Wolfgang Denk <wd@denx.de>
common/cmd_bdinfo.c

index 700314be60844eb956337f77e2b3b91cb680e644..b230924ee7db81afb863513a77c333883a31b8af 100644 (file)
@@ -31,7 +31,9 @@ DECLARE_GLOBAL_DATA_PTR;
 
 static void print_num(const char *, ulong);
 
+#if !defined(CONFIG_ARM) || defined(CONFIG_CMD_NET)
 static void print_eth(int idx);
+#endif
 
 #ifndef CONFIG_ARM     /* PowerPC and other */
 static void print_lnum(const char *, u64);
@@ -347,6 +349,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)
 static void print_eth(int idx)
 {
        char name[10], *val;
@@ -359,6 +362,7 @@ static void print_eth(int idx)
                val = "(not set)";
        printf("%-12s= %s\n", name, val);
 }
+#endif
 
 #ifndef CONFIG_ARM
 static void print_lnum(const char *name, u64 value)