clk: socfpga: fix compiler warnings for Cyclone5
When building for Cyclone5 SoCFPGA, the socfpga_a10_pll_init(),
socfpga_a10_perith_init() and socfpga_a10_gate_init() functions are
defined as dummy functions returning ERR_PTR(-ENOSYS).  They are defined
with external linkage.  With '-Wmissing-prototypes' GCC warns about
externally linked function definitions with no preceding prototype.
Define them as 'static inline' to avoid the compiler warnings.

(Note: Arria10 uses non-dummy versions of these functions declared
'extern' but defined elsewhere.)

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8676224 commit 05e69a1b693c1a661a04c4d7bf4ac929c3c8fa22
@Ian Abbott Ian Abbott authored on 8 Apr 2019
Sascha Hauer committed on 10 Apr 2019
Showing 1 changed file
View
drivers/clk/socfpga/clk.h