summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-10 19:20:12 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-12 12:37:37 (GMT)
commitb37483c42e2717300e55c83347aa83c042db5d9b (patch)
tree10445b917a0f20269092d3745be06f5fd8b09548 /cmd
parentf552d692462c278be5598b5a9ca4ad346e9586b7 (diff)
downloadu-boot-b37483c42e2717300e55c83347aa83c042db5d9b.tar.xz
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 <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bdinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index ff3cce0..41ab8e8 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);