usb: chipidea: debug: fix sparse non static symbol warnings
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 22 Jul 2014 02:09:45 +0000 (10:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jul 2014 23:31:37 +0000 (16:31 -0700)
Fixes the following sparse warnings:

drivers/usb/chipidea/debug.c:211:5: warning:
 symbol 'ci_otg_show' was not declared. Should it be static?
drivers/usb/chipidea/debug.c:334:5: warning:
 symbol 'ci_registers_show' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/debug.c

index 7cccab6ff3081e0f1e1947c13085d9c0ce21b909..795d6538d6303cff59ae49a4d2e8951897f1c008 100644 (file)
@@ -208,7 +208,7 @@ static const struct file_operations ci_requests_fops = {
        .release        = single_release,
 };
 
-int ci_otg_show(struct seq_file *s, void *unused)
+static int ci_otg_show(struct seq_file *s, void *unused)
 {
        struct ci_hdrc *ci = s->private;
        struct otg_fsm *fsm;
@@ -331,7 +331,7 @@ static const struct file_operations ci_role_fops = {
        .release        = single_release,
 };
 
-int ci_registers_show(struct seq_file *s, void *unused)
+static int ci_registers_show(struct seq_file *s, void *unused)
 {
        struct ci_hdrc *ci = s->private;
        u32 tmp_reg;