projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f552d69
)
cmd/bdinfo.c: Fix unused function warning
author
Tom Rini
<trini@konsulko.com>
Wed, 10 May 2017 19:20:12 +0000
(15:20 -0400)
committer
Tom Rini
<trini@konsulko.com>
Fri, 12 May 2017 12:37:37 +0000
(08:37 -0400)
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>
cmd/bdinfo.c
patch
|
blob
|
history
diff --git
a/cmd/bdinfo.c
b/cmd/bdinfo.c
index ff3cce05f98922883f3c0fae91cdc649803b92c9..41ab8e8089fa2f2170961b3bfcea27f68d931a45 100644
(file)
--- 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);