]> Pileus Git - ~andy/linux/commitdiff
tuntap: fix sparse warning
authorJason Wang <jasowang@redhat.com>
Tue, 18 Dec 2012 03:00:27 +0000 (11:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2012 04:49:06 +0000 (20:49 -0800)
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>
drivers/net/tun.c

index 173acf5b369ade70d6c3ce0da86999e04cfe61ee..504f7f1cad94655a52526b4fe136fb1468942f1d 100644 (file)
@@ -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;