* Compatibility file for Linux wireless for kernels 3.1.
*/
+#ifndef CONFIG_COMPAT_SLES_11_3
#if ! defined(RHEL_MINOR) || (RHEL_MINOR < 3)
#include <linux/idr.h>
EXPORT_SYMBOL(ida_simple_remove);
/* source lib/idr.c */
#endif
+#endif /* CONFIG_COMPAT_SLES_11_3 */
}
EXPORT_SYMBOL(__ethtool_get_settings);
-#ifndef CONFIG_COMPAT_SLES_11_2
+#if (!defined(CONFIG_COMPAT_SLES_11_2) && !defined(CONFIG_COMPAT_SLES_11_3))
#if !defined(RHEL_MINOR) || (RHEL_MINOR < 3)
/**
* llist_add_batch - add several linked entries in batch
}
EXPORT_SYMBOL_GPL(llist_del_first);
-#endif /* CONFIG_COMPAT_SLES_11_2 */
+#endif /* (!defined(CONFIG_COMPAT_SLES_11_2) && !defined(CONFIG_COMPAT_SLES_11_3)) */
#endif
* Compatibility file for Linux wireless for kernels 3.4.
*/
-#ifndef CONFIG_COMPAT_RHEL_6_4
+#if (!defined(CONFIG_COMPAT_RHEL_6_4) && !defined(CONFIG_COMPAT_SLES_11_3))
#include <linux/fs.h>
#include <linux/module.h>
}
EXPORT_SYMBOL_GPL(simple_open);
-#endif /* CONFIG_COMPAT_RHEL_6_4 */
+#endif /* (!defined(CONFIG_COMPAT_RHEL_6_4) && !defined(CONFIG_COMPAT_SLES_11_3)) */
#include <linux/idr.h>
#include <net/dst.h>
+#ifndef CONFIG_COMPAT_SLES_11_3
static inline struct neighbour *dst_get_neighbour(struct dst_entry *dst)
{
return dst->neighbour;
{
return rcu_dereference_raw(dst->neighbour);
}
+#endif /* CONFIG_COMPAT_SLES_11_3 */
/* Backports 56f8a75c */
static inline bool ip_is_fragment(const struct iphdr *iph)
#include <asm-generic/atomic64.h>
#endif
+#ifndef CONFIG_COMPAT_SLES_11_3
int ida_simple_get(struct ida *ida, unsigned int start, unsigned int end,
gfp_t gfp_mask);
void ida_simple_remove(struct ida *ida, unsigned int id);
+#endif /* CONFIG_COMPAT_SLES_11_3 */
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)) */
extern int __ethtool_get_settings(struct net_device *dev,
struct ethtool_cmd *cmd);
+#ifndef CONFIG_COMPAT_SLES_11_3
#ifdef CONFIG_COMPAT_SKB_FRAG_NEEDED
/**
*buf++ = hex_asc_lo(byte);
return buf;
}
+#endif /* CONFIG_COMPAT_SLES_11_3 */
/* module_platform_driver() - Helper macro for drivers that don't do
* anything special in module init/exit. This eliminates a lot of
typedef u32 netdev_features_t;
+#ifndef CONFIG_COMPAT_SLES_11_3
/* source include/linux/device.h */
/**
* module_driver() - Helper macro for drivers that don't do anything
}
#define NETIF_F_LOOPBACK (1 << 31) /* Enable loopback */
+#endif /* CONFIG_COMPAT_SLES_11_3 */
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)) */
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
+#ifndef CONFIG_COMPAT_SLES_11_3
extern int simple_open(struct inode *inode, struct file *file);
+#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28))
#define skb_add_rx_frag(skb, i, page, off, size, truesize) \
#endif /* CONFIG_COMPAT_RHEL_6_4 */
#else /* 2.6.36 and on */
+#ifndef CONFIG_COMPAT_SLES_11_3
static inline void eth_hw_addr_random(struct net_device *dev)
{
dev_hw_addr_random(dev, dev->dev_addr);
}
+#endif /* CONFIG_COMPAT_SLES_11_3 */
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)) */
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)) */
*
*/
-#ifndef CONFIG_COMPAT_RHEL_6_4
+#if (!defined(CONFIG_COMPAT_RHEL_6_4) && !defined(CONFIG_COMPAT_SLES_11_3))
static inline int fault_in_multipages_writeable(char __user *uaddr, int size)
{
int ret = 0;
return ret;
}
-#endif /* CONFIG_COMPAT_RHEL_6_4 */
+#endif /* (!defined(CONFIG_COMPAT_RHEL_6_4) && !defined(CONFIG_COMPAT_SLES_11_3)) */
/* switcheroo is available on >= 2.6.34 */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
+#ifndef CONFIG_COMPAT_SLES_11_3
#include <linux/vga_switcheroo.h>
/*
* This backports:
void (*reprobe)(struct pci_dev *dev);
bool (*can_switch)(struct pci_dev *dev);
};
+#endif /* CONFIG_COMPAT_SLES_11_3 */
#endif
/*
extern struct llist_node *llist_del_first(struct llist_head *head);
#else
-#ifdef CONFIG_COMPAT_SLES_11_2
+#if (defined(CONFIG_COMPAT_SLES_11_2) || defined(CONFIG_COMPAT_SLES_11_3))
#include_next <linux/llist.h>
#else
extern struct llist_node *llist_del_first(struct llist_head *head);
-#endif /* CONFIG_COMPAT_SLES_11_2 */
+#endif /* (defined(CONFIG_COMPAT_SLES_11_2) || defined(CONFIG_COMPAT_SLES_11_3)) */
#endif /* LLIST_H */
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */