Hi,
Does anybody have an idea why the following code fails in the
2.6.21.7Fedora 8 XEN kernel but not in 2.6.18.8-xen ?
emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ cc -D__KERNEL__
'-DKBUILD_BASENAME="#conftest.emre"' '-DKBUILD_MODNAME="#conftest.emre"'
-nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include
-I/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen
-I/lib/modules/2.6.21.7-3.fc8xen/build/include
-I/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-default -o
conftest.emre conftest.emre.c
In file included from
/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/system.h:10,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/processor.h:18,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/thread_info.h:16,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/linux/thread_info.h:21,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/linux/preempt.h:9,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/linux/spinlock.h:49,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/linux/capability.h:45,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/linux/sched.h:46,
from
/lib/modules/2.6.21.7-3.fc8xen/build/include/linux/utsname.h:35,
from conftest.emre.c:3:
/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/hypervisor.h:
In function 'HYPERVISOR_poll':
/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/hypervisor.h:198:
error: request for member 'p' in something not a structure or union
emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$
The code is:
emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ cat
conftest.emre.c
#include <linux/autoconf.h>
#include <linux/version.h>
#include <linux/utsname.h>
int main() {
if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) {
return 0;
} else {
return 1;
}
}
emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$
Due to this, the whole nvidia driver compilation is failing even though it
works on 2.6.18.8-xen dom0 kernel.
Any ideas on what's missing in the 2.6.21.7 sources?
Thanks a lot,
Emre Erenoglu