From: Jason Wang Date: Tue, 18 Dec 2012 03:00:27 +0000 (+0800) Subject: tuntap: fix sparse warning X-Git-Tag: v3.8-rc1~40^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d32649d1712b2e66d4ffebe0076561e15b598caf;p=karo-tx-linux.git 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 Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 173acf5b369a..504f7f1cad94 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;