Skip to content

Commit d17eb73

Browse files
Colin Ian Kingdavem330
authored andcommitted
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>
1 parent 7acd432 commit d17eb73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/tap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ static long tap_compat_ioctl(struct file *file, unsigned int cmd,
11271127
}
11281128
#endif
11291129

1130-
const struct file_operations tap_fops = {
1130+
static const struct file_operations tap_fops = {
11311131
.owner = THIS_MODULE,
11321132
.open = tap_open,
11331133
.release = tap_release,

0 commit comments

Comments
 (0)