[PATCH] ARM: arria10: generic.h: fix unused-function Werror
Steffen Trumtrar
s.trumtrar at pengutronix.de
Tue Jun 18 02:42:21 PDT 2024
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 at 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
More information about the barebox
mailing list