Skip to content

Commit f222447

Browse files
Wei Yongjungregkh
authored andcommitted
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>
1 parent 8f64215 commit f222447

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/misc/vexpress-syscfg.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static int vexpress_syscfg_write(void *context, unsigned int index,
130130
return vexpress_syscfg_exec(func, index, true, &val);
131131
}
132132

133-
struct regmap_config vexpress_syscfg_regmap_config = {
133+
static struct regmap_config vexpress_syscfg_regmap_config = {
134134
.lock = vexpress_config_lock,
135135
.unlock = vexpress_config_unlock,
136136
.reg_bits = 32,
@@ -276,7 +276,7 @@ int vexpress_syscfg_device_register(struct platform_device *pdev)
276276
}
277277

278278

279-
int vexpress_syscfg_probe(struct platform_device *pdev)
279+
static int vexpress_syscfg_probe(struct platform_device *pdev)
280280
{
281281
struct vexpress_syscfg *syscfg;
282282
struct resource *res;

0 commit comments

Comments
 (0)