]> git.baikalelectronics.ru Git - kernel.git/commit
lan78xx: mark symbols static where possible
authorBaoyou Xie <baoyou.xie@linaro.org>
Tue, 6 Sep 2016 08:19:02 +0000 (16:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 22:58:59 +0000 (15:58 -0700)
commitfcbbb8f884fa1a9e7f6ec60039e92ff765a74bba
tree38cb1848d1c636e85870a5dad282f63f731d8753
parenta0e0121410c4be089bbf81337f37a4764d7a6a11
lan78xx: mark symbols static where possible

We get a few warnings when building kernel with W=1:
drivers/net/usb/lan78xx.c:1182:6: warning: no previous prototype for 'lan78xx_defer_kevent' [-Wmissing-prototypes]
drivers/net/usb/lan78xx.c:1409:5: warning: no previous prototype for 'lan78xx_nway_reset' [-Wmissing-prototypes]
drivers/net/usb/lan78xx.c:2000:5: warning: no previous prototype for 'lan78xx_set_mac_addr' [-Wmissing-prototypes]
....

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
so this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c