Hi all:
I am trying to compile PV drivers for RHEL5.2 HVM guest(2.6.28-92.el5), but I came across the following errors while I compile it.
[root@xenserver linux-2.6]# make -C /lib/modules/`uname -r`/build M=`pwd` modules
make: Entering directory `/usr/src/kernels/2.6.18-92.el5-i686'
CC [M] /root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/balloon/balloon.o
In file included from include/xen/interface/xen.h:12,
from /root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/include/asm/hypervisor.h:40,
from /root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/balloon/balloon.c:48:
include/xen/interface/xen-compat.h:23:2: error: #error "These header files do not support the requested interface version."
In file included from /root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/balloon/balloon.c:63:
/root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h:150: error: redefinition of typedef ‘irq_handler_t’
include/linux/interrupt.h:67: error: previous declaration of ‘irq_handler_t’ was here
make[2]: *** [/root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/balloon/balloon.o] Error 1
make[1]: *** [/root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6/balloon] Error 2
make: *** [_module_/root/xen3.2/xen-3.2.0/unmodified_drivers/linux-2.6] Error 2
Can anybody give me some hints on how to solve this problem ?