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] PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels.
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Thu, 01 Nov 2007 14:38:26 +0900 (JST)
Delivery-date: Wed, 31 Oct 2007 22:39:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 <kuwa@xxxxxxxxxxxxxx>
-- 
  KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
# 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 <kuwa@xxxxxxxxxxxxxx>

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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels., KUWAMURA Shin'ya <=