From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM: arria10: generic.h: fix unused-function Werror
Date: Tue, 18 Jun 2024 11:42:21 +0200 [thread overview]
Message-ID: <20240618094251.2091891-1-s.trumtrar@pengutronix.de> (raw)
arria10_watchdog_disable/kick_l4wd0 is not used on non-Arria10
platforms. To not throw unused-function errors during compile stage,
the prototype must be "static inline void ..." and not just "static ..."
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
include/mach/socfpga/generic.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/mach/socfpga/generic.h b/include/mach/socfpga/generic.h
index 23fcdabc3e..2fabbf8e10 100644
--- a/include/mach/socfpga/generic.h
+++ b/include/mach/socfpga/generic.h
@@ -95,8 +95,8 @@ static inline int arria10_device_init(struct arria10_mainpll_cfg *mainpll,
{
return 0;
}
-static void arria10_kick_l4wd0(void) {}
-static void arria10_watchdog_disable(void) {}
+static inline void arria10_kick_l4wd0(void) {}
+static inline void arria10_watchdog_disable(void) {}
#endif
static inline void __udelay(unsigned us)
--
2.43.2
reply other threads:[~2024-06-18 9:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240618094251.2091891-1-s.trumtrar@pengutronix.de \
--to=s.trumtrar@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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