]> Git Repo - linux.git/commitdiff
drivers: soc: ti: knav_qmss_queue: Make knav_gp_range_ops static
authorSamuel Zou <[email protected]>
Thu, 28 May 2020 03:39:14 +0000 (20:39 -0700)
committerSantosh Shilimkar <[email protected]>
Thu, 28 May 2020 03:39:14 +0000 (20:39 -0700)
Fix the following sparse warning:

drivers/soc/ti/knav_qmss_queue.c:412:23: warning: symbol 'knav_gp_range_ops' was not declared.

The knav_acc_firmwares has only call site within knav_qmss_queue.c
It should be static

Fixes: 41f93af900a2 ("soc: ti: add Keystone Navigator QMSS driver")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Samuel Zou <[email protected]>
Signed-off-by: Santosh Shilimkar <[email protected]>
drivers/soc/ti/knav_qmss_queue.c

index 37f3db6c041c2299723f2a1a3f4bb4d8cdb658ea..aa071d96ef362d84817e77508e511070f9ade9ef 100644 (file)
@@ -409,7 +409,7 @@ static int knav_gp_close_queue(struct knav_range_info *range,
        return 0;
 }
 
-struct knav_range_ops knav_gp_range_ops = {
+static struct knav_range_ops knav_gp_range_ops = {
        .set_notify     = knav_gp_set_notify,
        .open_queue     = knav_gp_open_queue,
        .close_queue    = knav_gp_close_queue,
This page took 0.058937 seconds and 4 git commands to generate.