mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: arria10: generic.h: fix unused-function Werror
@ 2024-06-18  9:42 Steffen Trumtrar
  0 siblings, 0 replies; only message in thread
From: Steffen Trumtrar @ 2024-06-18  9:42 UTC (permalink / raw)
  To: barebox

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-18  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-18  9:42 [PATCH] ARM: arria10: generic.h: fix unused-function Werror Steffen Trumtrar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox