Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc: vexpress: Fix sparse non static symbol warnings

Fixes the following sparse warnings:

drivers/misc/vexpress-syscfg.c:133:22: warning:
symbol 'vexpress_syscfg_regmap_config' was not declared. Should it be static?
drivers/misc/vexpress-syscfg.c:279:5: warning:
symbol 'vexpress_syscfg_probe' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wei Yongjun and committed by
Greg Kroah-Hartman
f222447e 8f642155

+2 -2
+2 -2
drivers/misc/vexpress-syscfg.c
··· 130 130 return vexpress_syscfg_exec(func, index, true, &val); 131 131 } 132 132 133 - struct regmap_config vexpress_syscfg_regmap_config = { 133 + static struct regmap_config vexpress_syscfg_regmap_config = { 134 134 .lock = vexpress_config_lock, 135 135 .unlock = vexpress_config_unlock, 136 136 .reg_bits = 32, ··· 276 276 } 277 277 278 278 279 - int vexpress_syscfg_probe(struct platform_device *pdev) 279 + static int vexpress_syscfg_probe(struct platform_device *pdev) 280 280 { 281 281 struct vexpress_syscfg *syscfg; 282 282 struct resource *res;