Skip to contentSkip to conversation

xenU/x86_64: error: incompatible type for argument 1 of 'pud_val'

DISCUSSION Axel Thimm 2 participants 4 messages Apr 4, 2006 – Apr 5, 2006

lore
Share & tools
lore

Axel Thimm

author
#0 lore raw

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.

Thanks!

Signature · 1 line
Axel.Thimm at ATrpms.net
#1 lore raw

At Tue, 4 Apr 2006 13:15:57 +0200,

Quoted 14 lines · Axel Thimm

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

Quoted 2 lines

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.

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

author
#2 lore raw
Quoted 16 lines · Takashi Iwai

At Tue, 4 Apr 2006 13:15:57 +0200,

Quoted 14 lines · Axel Thimm

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

Quoted 6 lines
Quoted 2 lines

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

Signature · 1 line
Axel.Thimm at ATrpms.net
#3 lore raw

At Tue, 4 Apr 2006 22:10:12 +0200,

Quoted 33 lines · Axel Thimm
Quoted 16 lines · Takashi Iwai

At Tue, 4 Apr 2006 13:15:57 +0200,

Quoted 14 lines · Axel Thimm

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

Quoted 6 lines
Quoted 2 lines

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:
Quoted 13 lines

/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 <asm/apic.h> 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