diff options
author | Jason Wang <jasowang@redhat.com> | 2012-12-18 11:00:27 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-17 20:49:06 -0800 |
commit | d32649d1712b2e66d4ffebe0076561e15b598caf (patch) | |
tree | 73926d278887865b950270bfdcce3331cce14b24 /drivers/net | |
parent | 76fe45812a3b134c39170ca32dfd4b7217d33145 (diff) | |
download | linux-3.10-d32649d1712b2e66d4ffebe0076561e15b598caf.tar.gz linux-3.10-d32649d1712b2e66d4ffebe0076561e15b598caf.tar.bz2 linux-3.10-d32649d1712b2e66d4ffebe0076561e15b598caf.zip |
tuntap: fix sparse warning
Make tun_enable_queue() static to fix the sparse warning:
drivers/net/tun.c:399:19: sparse: symbol 'tun_enable_queue' was not declared. Should it be static?
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 173acf5b369..504f7f1cad9 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -396,7 +396,7 @@ static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) ++tun->numdisabled; } -struct tun_struct *tun_enable_queue(struct tun_file *tfile) +static struct tun_struct *tun_enable_queue(struct tun_file *tfile) { struct tun_struct *tun = tfile->detached; |