From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH] net: xen-netback: include linux/vmalloc.h again Date: Thu, 12 Jun 2014 10:07:45 +0100 Message-ID: <20140612090745.GV11959__11456.6187643961$1402564183$gmane$org@zion.uk.xensource.com> References: <5508988.K5Wec8A6hA@wuerfel> <20140610084454.GB28084@zion.uk.xensource.com> <20140611.151901.986995853392690449.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wv0z8-0006it-VS for xen-devel@lists.xenproject.org; Thu, 12 Jun 2014 09:07:51 +0000 Content-Disposition: inline In-Reply-To: <20140611.151901.986995853392690449.davem@davemloft.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Miller Cc: jwboyer@fedoraproject.org, wei.liu2@citrix.com, arnd@arndb.de, netdev@vger.kernel.org, xen-devel@lists.xenproject.org, andrew.bennieston@citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, Jun 11, 2014 at 03:19:01PM -0700, David Miller wrote: > From: Wei Liu > Date: Tue, 10 Jun 2014 09:44:54 +0100 > > > On Tue, Jun 10, 2014 at 10:34:36AM +0200, Arnd Bergmann wrote: > >> commit e9ce7cb6b107 ("xen-netback: Factor queue-specific data into > >> queue struct") added a use of vzalloc/vfree to interface.c, but > >> removed the #include statement at the same time, > >> which causes this build error: > >> > >> drivers/net/xen-netback/interface.c: In function 'xenvif_free': > >> drivers/net/xen-netback/interface.c:754:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration] > >> vfree(vif->queues); > >> ^ > >> cc1: some warnings being treated as errors > >> > >> Signed-off-by: Arnd Bergmann > >> Cc: Wei Liu > >> Cc: Andrew J. Bennieston > > > > Acked-by: Wei Liu > > > > This didn't happen to me when I built it on x86 though. Just curious, > > did you build it on othet platform, say, ARM? > > ARM and PowerPC will both show this problem. > > The issue is that x86 get's linux/vmalloc.h implicitly through one of > it's asm/ headers, thus you'll never hit the issue if you only build > test on that arch. Good to know. I shall keep an eye on this in the future. Thanks Wei.