Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d32649d1 authored by Jason Wang's avatar Jason Wang Committed by David S. Miller
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 76fe4581
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -396,7 +396,7 @@ static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile)
	++tun->numdisabled;
	++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;
	struct tun_struct *tun = tfile->detached;