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.
--
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
diff -r f8710b39fbb4
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
--- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Mon Dec
01 11:37:42 2008 +0000
+++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Mon Dec
08 11:08:47 2008 +0900
@@ -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
diff -r f8710b39fbb4 unmodified_drivers/linux-2.6/overrides.mk
--- a/unmodified_drivers/linux-2.6/overrides.mk Mon Dec 01 11:37:42 2008 +0000
+++ b/unmodified_drivers/linux-2.6/overrides.mk Mon Dec 08 11:08:47 2008 +0900
@@ -15,3 +15,4 @@
EXTRA_CFLAGS += $(_XEN_CPPFLAGS)
EXTRA_AFLAGS += $(_XEN_CPPFLAGS)
+CPPFLAGS := -I$(M)/include $(CPPFLAGS)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|