From: "KUWAMURA Shin'ya" Subject: PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels. Date: Thu, 01 Nov 2007 14:38:26 +0900 (JST) Message-ID: <20071101.143826.52177270.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Nov__1_14_38_26_2007_456)--" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Thu_Nov__1_14_38_26_2007_456)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, This fixes build errors of PV-on-HVM drivers for RHEL4U2: /ia64/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/../xenbus/xenbus_probe.c:72: warning: type defaults to `int' in declaration of `BLOCKING_NOTIFIER_HEAD' /ia64/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/../xenbus/xenbus_probe.c:72: warning: parameter names (without types) in function declaration /ia64/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/../xenbus/xenbus_probe.c: In function `register_xenstore_notifier': /ia64/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/../xenbus/xenbus_probe.c:828: warning: implicit declaration of function `blocking_notifier_chain_register' /ia64/xen-unstable.hg/unmodified_drivers/linux-2.6/platform-pci/../xenbus/xenbus_probe.c:828: error: `xenstore_chain' undeclared (first use in this function) Signed-off-by: KUWAMURA Shin'ya -- KUWAMURA Shin'ya ----Next_Part(Thu_Nov__1_14_38_26_2007_456)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-pv-driver-rhel4u2-blocking_notifier.patch" # HG changeset patch # User KUWAMURA Shin'ya # Date 1193894682 -32400 # Node ID 6b9ce04ef91469975da1a12ddfbc552fb6f468e0 # Parent a07288a8478521002c2302ad18fac52eb6600055 PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels. These definition are required for RHEL4U2(2.6.9-22.EL). Signed-off-by: KUWAMURA Shin'ya diff -r a07288a84785 -r 6b9ce04ef914 unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Tue Oct 30 15:34:44 2007 -0600 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Thu Nov 01 14:24:42 2007 +0900 @@ -49,6 +49,13 @@ #define atomic_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb) #define atomic_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb) #define atomic_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v) +#endif + +#if defined (_LINUX_NOTIFIER_H) && !defined BLOCKING_NOTIFIER_HEAD +#define BLOCKING_NOTIFIER_HEAD(name) struct notifier_block *name +#define blocking_notifier_chain_register(chain,nb) notifier_chain_register(chain,nb) +#define blocking_notifier_chain_unregister(chain,nb) notifier_chain_unregister(chain,nb) +#define blocking_notifier_call_chain(chain,val,v) notifier_call_chain(chain,val,v) #endif #if defined(_LINUX_MM_H) && defined set_page_count ----Next_Part(Thu_Nov__1_14_38_26_2007_456)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Thu_Nov__1_14_38_26_2007_456)----