diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-12 22:52:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-13 20:10:31 -0700 |
commit | d17eb73bb713dc8dd389aa87606b90edb0d258b2 (patch) | |
tree | 46563ee1a5dda963876c1a17d30be58dad8f7a40 /drivers/net/tap.c | |
parent | 7acd43296889a71ecf9c20498465f672e667a9ad (diff) | |
download | linux-d17eb73bb713dc8dd389aa87606b90edb0d258b2.tar.gz linux-d17eb73bb713dc8dd389aa87606b90edb0d258b2.tar.bz2 linux-d17eb73bb713dc8dd389aa87606b90edb0d258b2.zip |
tap: make struct tap_fops static
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>
Diffstat (limited to 'drivers/net/tap.c')
-rw-r--r-- | drivers/net/tap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tap.c b/drivers/net/tap.c index ca267fd28ab8..0d039411e64c 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -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, |