tap: make struct tap_fops static
authorColin Ian King <colin.king@canonical.com>
Sat, 12 Aug 2017 21:52:31 +0000 (22:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2017 03:10:31 +0000 (20:10 -0700)
The structure tap_fops is local to the source and does not need to
be in global scope, so make it static.

Cleans up sparse warning:
symbol 'tap_fops' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tap.c

index ca267fd28ab8c900dc8cfc2dac7244ed2e923b84..0d039411e64c2cba5c2a88fe8c47bfeb514534b8 100644 (file)
@@ -1127,7 +1127,7 @@ static long tap_compat_ioctl(struct file *file, unsigned int cmd,
 }
 #endif
 
-const struct file_operations tap_fops = {
+static const struct file_operations tap_fops = {
        .owner          = THIS_MODULE,
        .open           = tap_open,
        .release        = tap_release,