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
|