summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2021-02-07 14:29:12 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-07 10:15:05 +0100
commiteac859b84ed9a9732d8a74e08d36e6c6ece90864 (patch)
treeb17d6f3e0e54e8a6e2698ea992320c56d630f109 /drivers/pcmcia
parentf2d4eef5396a21f26e99115f087ff03b7646659d (diff)
downloadlinux-eac859b84ed9a9732d8a74e08d36e6c6ece90864.tar.bz2
staging: emxx_udc: Make incorrectly defined global static
The global gpio_desc pointer and int vbus_irq were defined in the header, instead put the definitions in the translation unit and make them static as there's only a single consumer, and these symbols shouldn't pollute the global namespace. This fixes the following sparse warnings for this driver: drivers/staging/emxx_udc/emxx_udc.c: note: in included file: drivers/staging/emxx_udc/emxx_udc.h:23:18: warning: symbol 'vbus_gpio' was not declared. Should it be static? drivers/staging/emxx_udc/emxx_udc.h:24:5: warning: symbol 'vbus_irq' was not declared. Should it be static? Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20210207085911.270746-1-memxor@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions