[PATCH] ARM: arria10: generic.h: fix unused-function Werror

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux