diff mbox

[U-Boot,2/8] cmd/bdinfo.c: Fix unused function warning

Message ID 1494444018-2748-2-git-send-email-trini@konsulko.com
State Accepted
Commit b37483c42e2717300e55c83347aa83c042db5d9b
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini May 10, 2017, 7:20 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini May 12, 2017, 5:23 p.m. UTC | #1
On Wed, May 10, 2017 at 03:20:12PM -0400, Tom Rini wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c
index ff3cce05f989..41ab8e8089fa 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);