From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752353AbbHaISJ (ORCPT ); Mon, 31 Aug 2015 04:18:09 -0400 Received: from bes.se.axis.com ([195.60.68.10]:50933 "EHLO bes.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbbHaISG (ORCPT ); Mon, 31 Aug 2015 04:18:06 -0400 Date: Mon, 31 Aug 2015 10:18:03 +0200 From: Ricard Wanderlof X-X-Sender: ricardw@lnxricardw1.se.axis.com To: Stephen Rothwell CC: Mark Brown , Liam Girdwood , "linux-next@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: linux-next: build failure after merge of the sound-asoc tree In-Reply-To: <20150831175149.76ffa13f@canb.auug.org.au> Message-ID: References: <20150828115041.037554b4@canb.auug.org.au> <20150828154556.GO12027@sirena.org.uk> <20150831174842.3c227fd2@canb.auug.org.au> <20150831175149.76ffa13f@canb.auug.org.au> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Aug 2015, Stephen Rothwell wrote: > On Mon, 31 Aug 2015 17:48:42 +1000 Stephen Rothwell wrote: > > > > On Mon, 31 Aug 2015 09:04:22 +0200 Ricard Wanderlof wrote: > > > > > > On Fri, 28 Aug 2015, Mark Brown wrote: > > > > > > > On Fri, Aug 28, 2015 at 09:40:41AM +0200, Ricard Wanderlof wrote: > > > > > On Fri, 28 Aug 2015, Stephen Rothwell wrote: > > > > > > > > > In fact the exact same construct is used by a handful of other codec > > > > > drivers which apparently don't fail. > > > > > > > > > I'm suspecting something slightly more convoluted like a missing > > > > #include . > > > > > > > > No, the issue is that you have used a different variable name when > > > > declaring the IDs and when referencing them in the module device table. > > > > > > Yeah, I realized that upon closer inspection. > > > > > > What bugs me is that my ARM gcc didn't seem to flag this, whereas the > > > x86 gcc did upon subsequent testing. And yes, CONFIG_OF is set during my > > > build. > > > > Do you have CONFIG_MODULE set in your build? (just guessing) > > Actually what matters is if you build the driver as a module or not. > See include/linux/module.h and the definitions of MODULE_DEVICE_TABLE(). Bingo. Haven't verified that, but it's true, the kernel build for our ARM system is largely monolithic as we have no need to reconfigure it once it has been built. Whereas in my x86 test build the driver was built as a module. Thanks Stegphen! /Ricard -- Ricard Wolf Wanderlöf ricardw(at)axis.com Axis Communications AB, Lund, Sweden www.axis.com Phone +46 46 272 2016 Fax +46 46 13 61 30