PV drivers can be compiled on CentOS 5.x without any modifications.
PATCH 1/1 PV drivers can be compiled on CentOS 5.x without any modifications.
Hi all,
Since I could not compile PV drivers on CentOS 5.2, I have implemented small patch (attached) to platform-compat.h and overrides.mk.
I have tested this patch on both CentOS 5.2 and Debian etch, and it works well.
Will you review it?
Thank you in advance,
Yoshisato YANAGISAWA.
Signature · 6 lines
Yoshisato YANAGISAWA, Ph.D. Open Source Software Computing Project NTT Cyber Space Laboratories NIPPON TELEGRAPH AND TELEPHONE CORPORATION 1-1 Hikarinooka, Yokosuka-Shi, Kanagawa 239-0847, Japan
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +2 -1
@@ -146,7 +146,8 @@* Since it is a typedef, and not a macro - detect this kernel via * RHEL_VERSION */ -#if !defined(RHEL_VERSION ) || (RHEL_VERSION ==4 &&RHEL_UPDATE <5 ) +#if (!defined(RHEL_VERSION ) || (RHEL_VERSION ==4 &&RHEL_UPDATE <5 )) && \ + (!defined(RHEL_MAJOR ) || (RHEL_MAJOR ==4 &&RHEL_MINOR <5 ))typedef irqreturn_t (*irq_handler_t )(int ,void *,struct pt_regs *);#endif #endif
unmodified_drivers/linux-2.6/overrides.mk +1 -0
@@ -15,3 +15,4 @@ EXTRA_CFLAGS += $(_XEN_CPPFLAGS) EXTRA_AFLAGS += $(_XEN_CPPFLAGS) +CPPFLAGS := -I$(M)/include $(CPPFLAGS)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel