Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757562AbbBEOBP (ORCPT ); Thu, 5 Feb 2015 09:01:15 -0500 Received: from smtp.citrix.com ([66.165.176.89]:36164 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752944AbbBEOBO (ORCPT ); Thu, 5 Feb 2015 09:01:14 -0500 X-IronPort-AV: E=Sophos;i="5.09,524,1418083200"; d="scan'208";a="223388066" Date: Thu, 5 Feb 2015 14:01:12 +0000 From: Wei Liu To: Lad Prabhakar CC: Ian Campbell , Wei Liu , , , Subject: Re: [PATCH] xen-netback: fix sparse warning Message-ID: <20150205140112.GC4311@zion.uk.xensource.com> References: <1423143487-4722-1-git-send-email-prabhakar.csengg@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1423143487-4722-1-git-send-email-prabhakar.csengg@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1388 Lines: 40 On Thu, Feb 05, 2015 at 01:38:07PM +0000, Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > this patch fixes following sparse warning: > > interface.c:83:5: warning: symbol 'xenvif_poll' was not declared. Should it be static? > > Signed-off-by: Lad, Prabhakar Acked-by: Wei Liu Thanks! > --- > Found this issue on linux-next (gcc version 4.9.2, > sparse version 0.4.5-rc1)and applies on top linux-next. > > drivers/net/xen-netback/interface.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c > index 12f9e27..f38227a 100644 > --- a/drivers/net/xen-netback/interface.c > +++ b/drivers/net/xen-netback/interface.c > @@ -80,7 +80,7 @@ static irqreturn_t xenvif_tx_interrupt(int irq, void *dev_id) > return IRQ_HANDLED; > } > > -int xenvif_poll(struct napi_struct *napi, int budget) > +static int xenvif_poll(struct napi_struct *napi, int budget) > { > struct xenvif_queue *queue = > container_of(napi, struct xenvif_queue, napi); > -- > 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/