Skip to content

Commit df40f8d

Browse files
Wei Yongjungregkh
authored andcommitted
usb: chipidea: debug: fix sparse non static symbol warnings
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 <[email protected]> Signed-off-by: Peter Chen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 000cb47 commit df40f8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/chipidea/debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static const struct file_operations ci_requests_fops = {
208208
.release = single_release,
209209
};
210210

211-
int ci_otg_show(struct seq_file *s, void *unused)
211+
static int ci_otg_show(struct seq_file *s, void *unused)
212212
{
213213
struct ci_hdrc *ci = s->private;
214214
struct otg_fsm *fsm;
@@ -331,7 +331,7 @@ static const struct file_operations ci_role_fops = {
331331
.release = single_release,
332332
};
333333

334-
int ci_registers_show(struct seq_file *s, void *unused)
334+
static int ci_registers_show(struct seq_file *s, void *unused)
335335
{
336336
struct ci_hdrc *ci = s->private;
337337
u32 tmp_reg;

0 commit comments

Comments
 (0)