Compile error

Zhao, Yunfeng
2007-07-09T01:13:20Z

I meet the error below when I compile KVM module against
30dac03825e830641054a829fe99ff6d1f2ebe0d. The kernel is 2.6.22-rc4.

+ make -C kernel
make[1]: Entering directory
`/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-users
pace/BUILD/kernel'
make -j20 -C /lib/modules/2.6.22-rc4/build M=`pwd` "$@"
make[2]: Entering directory
`/usr/src/redhat/BUILD/kernel-2.6.22rc4g85f6038f'
LD
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/built-in.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/svm.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/vmx.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/vmx-debug.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/mmu.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/x86_emulate.o
CC [M]
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/anon_inodes.o
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c: In function 'kvm_cpu_hotplug':
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3007: error: 'CPU_DYING' undeclared (first
use in this function)
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3007: error: (Each undeclared identifier is
reported only once
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3007: error: for each function it appears
in.)
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3008: error: 'CPU_DYING_FROZEN' undeclared
(first use in this function)
/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-usersp
ace/BUILD/kernel/kvm_main.c:3013: warning: implicit declaration of
function 'on_cpu'
make[3]: ***
[/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20070708190117/kvm-users
pace/BUILD/kernel/kvm_main.o] Error 1
make[3]: *** Waiting for unfinished jobs....

How can I fix this issue?

Thanks
Yunfeng

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.