Commit d17eb73b authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7acd4329
...@@ -1127,7 +1127,7 @@ static long tap_compat_ioctl(struct file *file, unsigned int cmd, ...@@ -1127,7 +1127,7 @@ static long tap_compat_ioctl(struct file *file, unsigned int cmd,
} }
#endif #endif
const struct file_operations tap_fops = { static const struct file_operations tap_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = tap_open, .open = tap_open,
.release = tap_release, .release = tap_release,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment