diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-08 07:29:24 -0400 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2016-09-22 16:50:09 -0400 |
commit | 952e8faec53ec1de045f44f48a82e5069d2f17b4 (patch) | |
tree | a22fdec67fc67e3f2d07d9ab32eaf07f70a0c184 /drivers/gpu | |
parent | 0fd86779f04afcddbcff0ecb7ff3b487d17add7c (diff) |
drm/tilcdc: mark symbols static where possible
We get 3 warnings when building kernel with W=1:
drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:142:29: warning: no previous prototype for 'tilcdc_get_overlay' [-Wmissing-prototypes]
drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:198:13: warning: no previous prototype for 'tilcdc_convert_slave_node' [-Wmissing-prototypes]
drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c:264:12: warning: no previous prototype for 'tilcdc_slave_compat_init' [-Wmissing-prototypes]
In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
So this patch marks these functions with 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c b/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c index f9c79dabce20..dd8de260c362 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_slave_compat.c | |||
@@ -139,7 +139,7 @@ static void __init tilcdc_node_disable(struct device_node *node) | |||
139 | of_update_property(node, prop); | 139 | of_update_property(node, prop); |
140 | } | 140 | } |
141 | 141 | ||
142 | struct device_node * __init tilcdc_get_overlay(struct kfree_table *kft) | 142 | static struct device_node * __init tilcdc_get_overlay(struct kfree_table *kft) |
143 | { | 143 | { |
144 | const int size = __dtb_tilcdc_slave_compat_end - | 144 | const int size = __dtb_tilcdc_slave_compat_end - |
145 | __dtb_tilcdc_slave_compat_begin; | 145 | __dtb_tilcdc_slave_compat_begin; |
@@ -195,7 +195,7 @@ static const char * const tilcdc_slave_props[] __initconst = { | |||
195 | NULL | 195 | NULL |
196 | }; | 196 | }; |
197 | 197 | ||
198 | void __init tilcdc_convert_slave_node(void) | 198 | static void __init tilcdc_convert_slave_node(void) |
199 | { | 199 | { |
200 | struct device_node *slave = NULL, *lcdc = NULL; | 200 | struct device_node *slave = NULL, *lcdc = NULL; |
201 | struct device_node *i2c = NULL, *fragment = NULL; | 201 | struct device_node *i2c = NULL, *fragment = NULL; |
@@ -261,7 +261,7 @@ out: | |||
261 | of_node_put(fragment); | 261 | of_node_put(fragment); |
262 | } | 262 | } |
263 | 263 | ||
264 | int __init tilcdc_slave_compat_init(void) | 264 | static int __init tilcdc_slave_compat_init(void) |
265 | { | 265 | { |
266 | tilcdc_convert_slave_node(); | 266 | tilcdc_convert_slave_node(); |
267 | return 0; | 267 | return 0; |