PV-on-HVM: Define BLOCKING_NOTIFIER_HEAD macro for old Linux kernels.
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)
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]>
# 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).
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +7 -0
@@ -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) && !definedBLOCKING_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
[email protected]
http://lists.xensource.com/xen-devel