From: Takashi Iwai Subject: Re: Re: xenU/x86_64: error: incompatible type for argument 1 of 'pud_val' Date: Wed, 05 Apr 2006 13:24:59 +0200 Message-ID: References: <20060404111557.GS24961@neu.nirvana> <20060404201012.GX24961@neu.nirvana> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20060404201012.GX24961@neu.nirvana> 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: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 4 Apr 2006 22:10:12 +0200, Axel Thimm wrote: > > On Tue, Apr 04, 2006 at 05:52:15PM +0200, Takashi Iwai wrote: > > At Tue, 4 Apr 2006 13:15:57 +0200, > > Axel Thimm wrote: > > > > > > Hi, > > > > > > I'm trying to build rpms for alsa 1.0.11rc4 for several > > > distributions/arch in the RHEL/Fedora Core world and came across the > > > following issue: > > > > > > CC [M] /builddir/alsa-driver-1.0.11rc4/acore/memory_wrapper.o > > > /builddir/alsa-driver-1.0.11rc4/acore/memory_wrapper.c: In function 'snd_compat_vmalloc_to_page': > > > /builddir/alsa-driver-1.0.11rc4/acore/memory_wrapper.c:40: warning: implicit declaration of function 'VMALLOC_VMADDR' > > > /builddir/alsa-driver-1.0.11rc4/acore/memory_wrapper.c:45: error: incompatible type for argument 1 of 'pud_val' > > > /builddir/alsa-driver-1.0.11rc4/acore/memory_wrapper.c:46: warning: implicit declaration of function 'pte_offset' > > > /builddir/alsa-driver-1.0.11rc4/acore/memory_wrapper.c:46: warning: assignment makes pointer from integer without a cast > > > > > > That's on FC5/x86_64 building for the kernel flavour xenU > > > (guest). Building for FC5/i386 works. > > > > vmalloc_to_page() should exist in linux/mm.h in the case of 2.6 > > kernel. Check config.log whether configure properly detected the > > function or not. > > The check failed due to > > configure:7067: checking for vmalloc_to_page > configure:7098: /usr/bin/gcc -c -Wall -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/kernel/include -nostdinc -iwithprefix include -DKBUILD_BASENAME="dummy" conftest.c >&5 > In file included from /kernel/include/linux/smp.h:19, > from /kernel/include/linux/sched.h:26, > from /kernel/include/linux/mm.h:4, > from conftest.c:26: > /kernel/include/asm/smp.h: In function 'hard_smp_processor_id': > /kernel/include/asm/smp.h:78: warning: implicit declaration of function 'GET_APIC_ID' > /kernel/include/asm/smp.h:78: error: 'APIC_BASE' undeclared (first use in this function) > /kernel/include/asm/smp.h:78: error: (Each undeclared identifier is reported only once > /kernel/include/asm/smp.h:78: error: for each function it appears in.) > /kernel/include/asm/smp.h:78: error: 'APIC_ID' undeclared (first use in this function) > /kernel/include/asm/smp.h: In function 'cpu_present_to_apicid': > /kernel/include/asm/smp.h:113: error: 'BAD_APICID' undeclared (first use in this function) > /kernel/include/asm/smp.h: In function 'logical_smp_processor_id': > /kernel/include/asm/smp.h:136: warning: implicit declaration of function 'GET_APIC_LOGICAL_ID' > /kernel/include/asm/smp.h:136: error: 'APIC_BASE' undeclared (first use in this function) > /kernel/include/asm/smp.h:136: error: 'APIC_LDR' undeclared (first use in this function) > configure:7104: $? = 1 It's a bug in asm-x86-64/smp.h. It should include unconditionally. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642