WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [patch] PV drivers can be compiled on CentOS 5.x without any

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] PV drivers can be compiled on CentOS 5.x without any modifications.
From: Yoshisato YANAGISAWA <yanagisawa.yoshisato@xxxxxxxxxxxxx>
Date: Tue, 09 Dec 2008 18:51:23 +0900
Delivery-date: Tue, 09 Dec 2008 01:51:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: NTT Laboratories
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] PV drivers can be compiled on CentOS 5.x without any modifications., Yoshisato YANAGISAWA <=