From: Tom Rini Date: Wed, 10 May 2017 19:20:12 +0000 (-0400) Subject: cmd/bdinfo.c: Fix unused function warning X-Git-Tag: baikal/mips/sdk5.9~4902 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=c4f6c4822dc0b37c339fa77f5c7b937e9d49e4de;p=uboot.git cmd/bdinfo.c: Fix unused function warning On most architectures we do not call print_std_bdinfo() so mark it with __maybe_unused. Reported by clang-3.8. Signed-off-by: Tom Rini --- diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ff3cce05f9..41ab8e8089 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -157,7 +157,7 @@ static inline void print_baudrate(void) #endif } -static inline void print_std_bdinfo(const bd_t *bd) +static inline void __maybe_unused print_std_bdinfo(const bd_t *bd) { print_bi_boot_params(bd); print_bi_mem(bd);