diff options
author | Keir Fraser <keir@xensource.com> | 2007-10-25 15:54:19 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-10-25 15:54:19 +0100 |
commit | bb59a254afbc5cef94d6b02d707bcf6906c59b05 (patch) | |
tree | 53eff041b7618d55a72637a8c1c67277a680ddb4 /unmodified_drivers/linux-2.6/compat-include | |
parent | 80273cb18f581206d41a47f011e85d7badee02dc (diff) | |
download | xen-bb59a254afbc5cef94d6b02d707bcf6906c59b05.tar.gz xen-bb59a254afbc5cef94d6b02d707bcf6906c59b05.tar.bz2 xen-bb59a254afbc5cef94d6b02d707bcf6906c59b05.zip |
pv-on-hvm: fixes for unmodified drivers build and modern Linux
- The adjustments to README and overrides.mk are generic.
- The removal of explicit linux/config.h inclusion should also not
cause any issues.
- The introduction of irq_handler_t should eliminiate warnings on
2.6.19+ kernels (I didn't check they're there, but since the
request_irq prototype changed, I'm sure there's at least
one. However, as a result changes to the Linux tree are expected to
be required.
- The change setup_xen_features -> xen_setup_features follows the
naming in mainline 2.6.23 but would apparently also require changes
to the Linux tree.
- The changes SA_* -> IRQF_ and pci_module_init ->
pci_register_driver should also not cause issues.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/compat-include')
-rw-r--r-- | unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index 54a81f6ee9..c720d6e9be 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -125,4 +125,12 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...) #define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED #endif +#if defined(_LINUX_INTERRUPT_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) +typedef irqreturn_t (*irq_handler_t)(int, void *, struct pt_regs *); +#endif + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) +#define setup_xen_features xen_setup_features +#endif + #endif |