projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acd432
)
tap: make struct tap_fops static
author
Colin Ian King
<colin.king@canonical.com>
Sat, 12 Aug 2017 21:52:31 +0000
(22:52 +0100)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tap.c
b/drivers/net/tap.c
index ca267fd28ab8c900dc8cfc2dac7244ed2e923b84..0d039411e64c2cba5c2a88fe8c47bfeb514534b8 100644
(file)
--- 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,