summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2019-04-08 15:49:32 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-04-10 08:22:29 +0200
commit05e69a1b693c1a661a04c4d7bf4ac929c3c8fa22 (patch)
treef912fa2ffb436e5375779f833101661b97482387
parent86762248de707c1d5bc59f7ddf73c47fef2e2999 (diff)
downloadbarebox-05e69a1b693c1a661a04c4d7bf4ac929c3c8fa22.tar.gz
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>
-rw-r--r--drivers/clk/socfpga/clk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/socfpga/clk.h b/drivers/clk/socfpga/clk.h
index 6d6c283..cea3fcf 100644
--- a/drivers/clk/socfpga/clk.h
+++ b/drivers/clk/socfpga/clk.h
@@ -41,15 +41,15 @@ struct clk *socfpga_a10_pll_init(struct device_node *node);
struct clk *socfpga_a10_periph_init(struct device_node *node);
struct clk *socfpga_a10_gate_init(struct device_node *node);
#else
-struct clk *socfpga_a10_pll_init(struct device_node *node)
+static inline struct clk *socfpga_a10_pll_init(struct device_node *node)
{
return ERR_PTR(-ENOSYS);
}
-struct clk *socfpga_a10_periph_init(struct device_node *node)
+static inline struct clk *socfpga_a10_periph_init(struct device_node *node)
{
return ERR_PTR(-ENOSYS);
}
-struct clk *socfpga_a10_gate_init(struct device_node *node)
+static inline struct clk *socfpga_a10_gate_init(struct device_node *node)
{
return ERR_PTR(-ENOSYS);
}