diff options
author | Wolfgang Denk <wd@denx.de> | 2009-03-28 23:54:21 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-03-28 23:54:21 (GMT) |
commit | 26e42cbd786241fec370a0b92ad591f4e9cc423b (patch) | |
tree | 75ead8c234ce512a6c8c79a53ccd003132dc788f /common/cmd_bdinfo.c | |
parent | fd88d91a639ce41b825c8d50dc2182050e98fe53 (diff) | |
download | u-boot-fsl-qoriq-26e42cbd786241fec370a0b92ad591f4e9cc423b.tar.xz |
ARM: fix warning: 'print_eth' defined but not used
This warning got issued for all ARM systems that don't have
CONFIG_CMD_NET enabled.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r-- | common/cmd_bdinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 700314b..b230924 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -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) |