diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-08-28 13:28:15 +0800 |
---|---|---|
committer | Roger Quadros <rogerq@ti.com> | 2016-08-29 11:00:24 +0300 |
commit | 3950fffdf0c088dd4d9e85c9a5a6be4c6e8b5a07 (patch) | |
tree | 076ec0898b5da0a625ce6922b4b65b0e3b610769 /drivers/memory | |
parent | 0680b0cabcd0a2264f0ad8ac569caf928f65afb6 (diff) | |
download | op-kernel-dev-3950fffdf0c088dd4d9e85c9a5a6be4c6e8b5a07.zip op-kernel-dev-3950fffdf0c088dd4d9e85c9a5a6be4c6e8b5a07.tar.gz |
memory: omap-gpmc: make gpmc_clk_ticks_to_ns() static
We get 1 warning when build kernel with W=1:
drivers/memory/omap-gpmc.c:354:14: warning: no previous prototype for 'gpmc_clk_ticks_to_ns' [-Wmissing-prototypes]
In fact, this function is only used in the file in which it is declared
and don't need a declaration, but can be made static.
so this patch marks it 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/omap-gpmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index e5f9c17..c2c32ed 100644 --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c @@ -350,8 +350,8 @@ static unsigned int gpmc_ps_to_ticks(unsigned int time_ps) return (time_ps + tick_ps - 1) / tick_ps; } -unsigned int gpmc_clk_ticks_to_ns(unsigned ticks, int cs, - enum gpmc_clk_domain cd) +static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs, + enum gpmc_clk_domain cd) { return ticks * gpmc_get_clk_period(cs, cd) / 1000; } |