ia64/xen-unstable

changeset 11987:ded9d1ae21f7

PV-to-HVM: Add compatibility definitions of various #defines when they
are not present in the kernel we are building against.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Oct 25 13:58:30 2006 +0100 (2006-10-25)
parents e09720caf72d
children f4b878188b5d
files unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Wed Oct 25 13:58:30 2006 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Wed Oct 25 13:58:30 2006 +0100
     1.3 @@ -3,4 +3,26 @@
     1.4  
     1.5  #include <linux/version.h>
     1.6  
     1.7 +#include <linux/spinlock.h>
     1.8 +
     1.9 +#if defined(__LINUX_COMPILER_H) && !defined(__always_inline)
    1.10 +#define __always_inline inline
    1.11  #endif
    1.12 +
    1.13 +#if defined(__LINUX_SPINLOCK_H) && !defined(DEFINE_SPINLOCK)
    1.14 +#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
    1.15 +#endif
    1.16 +
    1.17 +#if defined(_LINUX_INIT_H) && !defined(__init)
    1.18 +#define __init
    1.19 +#endif
    1.20 +
    1.21 +#if defined(__LINUX_CACHE_H) && !defined(__read_mostly)
    1.22 +#define __read_mostly
    1.23 +#endif
    1.24 +
    1.25 +#if defined(_LINUX_SKBUFF_H) && !defined(NET_IP_ALIGN)
    1.26 +#define NET_IP_ALIGN 0
    1.27 +#endif
    1.28 +
    1.29 +#endif