From: Takashi Iwai Subject: Re: Problem compiling alsa-driver-1.0.10rc2 for arm. Date: Thu, 20 Oct 2005 16:18:21 +0200 Message-ID: References: <200510201606656.SM01852@STATIONXP> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200510201606656.SM01852@STATIONXP> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Guillaume GOURAT Cc: alsa-devel@lists.sourceforge.net, linux-arm@lists.arm.linux.org.uk List-Id: alsa-devel@alsa-project.org At Thu, 20 Oct 2005 16:06:30 +0200, Guillaume GOURAT wrote: > > Hi, > > I have a problem when compiling alsa-driver-1.0.10rc2 (or > alsa-driver-1.0.9b) with linux kernel 2.6.14-rc4 (or linux 2.6.11.4) : > (alsa-driver-1.0.9rc2 compile fine with linux 2.6.11.4 but not with linux > 2.6.14-rc4 because class_simple_device_add symbol was removed) > > With alsa-driver-1.0.10rc2 : > > /public/projects/mkembsys/build/nexcoder/alsa-driver-1.0.10rc2/acore/sound.i > nc:49: error: `snd_pci_dev_present' undeclared here (not in a function) > /public/projects/mkembsys/build/nexcoder/alsa-driver-1.0.10rc2/acore/sound.i > nc:49: error: initializer element is not constant > /public/projects/mkembsys/build/nexcoder/alsa-driver-1.0.10rc2/acore/sound.i > nc:49: error: (near initialization for > `__ksymtab_snd_pci_dev_present.value') > /public/projects/mkembsys/build/nexcoder/alsa-driver-1.0.10rc2/acore/sound.i > nc:49: error: __ksymtab_snd_pci_dev_present causes a section type conflict Try the patch below. Takashi Index: alsa-driver/acore/sound.inc =================================================================== RCS file: /home/iwai/cvs/alsa/alsa-driver/acore/sound.inc,v retrieving revision 1.16 diff -u -r1.16 sound.inc --- alsa-driver/acore/sound.inc 6 Oct 2005 22:19:46 -0000 1.16 +++ alsa-driver/acore/sound.inc 20 Oct 2005 14:17:18 -0000 @@ -45,9 +45,11 @@ EXPORT_SYMBOL(snd_compat_kzalloc); #endif #endif +#ifdef CONFIG_PCI #ifndef CONFIG_HAVE_PCI_DEV_PRESENT EXPORT_SYMBOL(snd_pci_dev_present); #endif +#endif #ifndef CONFIG_HAVE_MSLEEP EXPORT_SYMBOL(snd_compat_msleep); #endif ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl