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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,