public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/8] cmd/bdinfo.c: Fix unused function warning
Date: Wed, 10 May 2017 15:20:12 -0400	[thread overview]
Message-ID: <1494444018-2748-2-git-send-email-trini@konsulko.com> (raw)
In-Reply-To: <1494444018-2748-1-git-send-email-trini@konsulko.com>

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

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);
-- 
1.9.1

  reply	other threads:[~2017-05-10 19:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-10 19:20 [U-Boot] [PATCH 1/8] Kconfig: Drop CONFIG_EMAC_MDIO_PHY_NUM Tom Rini
2017-05-10 19:20 ` Tom Rini [this message]
2017-05-12 17:23   ` [U-Boot] [U-Boot, 2/8] cmd/bdinfo.c: Fix unused function warning Tom Rini
2017-05-10 19:20 ` [U-Boot] [PATCH 3/8] cmd/io.c: Fix comparison of unsigned expression warning Tom Rini
2017-05-12 17:23   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-10 19:20 ` [U-Boot] [PATCH 4/8] cmd/led.c: Remove unnecessary check on 'cmd' value Tom Rini
2017-05-12 17:23   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-10 19:20 ` [U-Boot] [PATCH 5/8] gpio-uclass.c: Fix comparison of unsigned expression warning Tom Rini
2017-05-10 22:03   ` Simon Glass
2017-05-12 17:24   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-10 19:20 ` [U-Boot] [PATCH 6/8] mmc: Change 'part_config' to be a u8 not char Tom Rini
2017-05-25 13:15   ` Jaehoon Chung
2017-05-10 19:20 ` [U-Boot] [PATCH 7/8] drivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions Tom Rini
2017-05-25 13:17   ` Jaehoon Chung
2017-05-10 19:20 ` [U-Boot] [PATCH 8/8] tpm: Fix comparison of unsigned expression warning Tom Rini
2017-05-12 17:24   ` [U-Boot] [U-Boot, " Tom Rini
2017-05-12 17:23 ` [U-Boot] [U-Boot,1/8] Kconfig: Drop CONFIG_EMAC_MDIO_PHY_NUM Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1494444018-2748-2-git-send-email-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox