| Submitter | Jason Wang |
|---|---|
| Date | Dec. 18, 2012, 3 a.m. |
| Message ID | <1355799627-55529-1-git-send-email-jasowang@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/207021/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Jason Wang <jasowang@redhat.com> Date: Tue, 18 Dec 2012 11:00:27 +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> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 173acf5..504f7f1 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;
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> --- drivers/net/tun.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)