* hex_to_bin() converts one hex digit to its actual value or -1 in case of bad
* input.
*/
-int hex_to_bin(char ch)
+int compat_hex_to_bin(char ch)
{
if ((ch >= '0') && (ch <= '9'))
return ch - '0';
return ch - 'a' + 10;
return -1;
}
-EXPORT_SYMBOL(hex_to_bin);
+EXPORT_SYMBOL(compat_hex_to_bin);
/**
* noop_llseek - No Operation Performed llseek implementation
* For tight control over page level allocator and protection flags
* use __vmalloc() instead.
*/
-void *vzalloc(unsigned long size)
+void *compat_vzalloc(unsigned long size)
{
void *buf;
buf = vmalloc(size);
memset(buf, 0, size);
return buf;
}
-EXPORT_SYMBOL(vzalloc);
+EXPORT_SYMBOL(compat_vzalloc);
#endif
#include <pcmcia/ds.h>
#endif
#include <linux/firmware.h>
+#include <linux/input.h>
#if defined(CONFIG_COMPAT_FIRMWARE_CLASS)
#define release_firmware compat_release_firmware
}
#endif
+/* mask KEY_RFKILL as RHEL6 backports this */
+#if !defined(KEY_RFKILL)
#define KEY_RFKILL 247 /* Key that controls all radios */
+#endif
#define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */
/* source: include/linux/if.h */
return pci_find_capability(dev, PCI_CAP_ID_EXP);
}
+/* mask pci_is_pcie as RHEL6 backports this */
+#define pci_is_pcie(a) compat_pci_is_pcie(a)
+
/**
* pci_is_pcie - check if the PCI device is PCI Express capable
* @dev: PCI device
#define netdev_info(dev, format, args...) \
netdev_printk(KERN_INFO, dev, format, ##args)
+/* mask netdev_dbg as RHEL6 backports this */
+#if !defined(netdev_dbg)
+
#if defined(DEBUG)
#define netdev_dbg(__dev, format, args...) \
netdev_printk(KERN_DEBUG, __dev, format, ##args)
})
#endif
+#endif
+
+/* mask netdev_vdbg as RHEL6 backports this */
+#if !defined(netdev_dbg)
+
#if defined(VERBOSE_DEBUG)
#define netdev_vdbg netdev_dbg
#else
})
#endif
+#endif
+
/*
* netdev_WARN() acts like dev_printk(), but with the key difference
* of using a WARN/WARN_ON to get the message out, including the
#define netif_info(priv, type, dev, fmt, args...) \
netif_printk(priv, type, KERN_INFO, (dev), fmt, ##args)
+/* mask netif_dbg as RHEL6 backports this */
+#if !defined(netif_dbg)
+
#if defined(DEBUG)
#define netif_dbg(priv, type, dev, format, args...) \
netif_printk(priv, type, KERN_DEBUG, dev, format, ##args)
})
#endif
+#endif
+
+/* mask netif_vdbg as RHEL6 backports this */
+#if !defined(netif_vdbg)
+
#if defined(VERBOSE_DEBUG)
#define netif_vdbg netdev_dbg
#else
0; \
})
#endif
+#endif
/* source: include/linux/netdevice.h */
#define sdio_writeb_readb(func, write_byte, addr, err_ret) sdio_readb(func, addr, err_ret)
+/* mask hex_to_bin as RHEL6 backports this */
+#define hex_to_bin(a) compat_hex_to_bin(a)
+
int hex_to_bin(char ch);
extern loff_t noop_llseek(struct file *file, loff_t offset, int origin);
#define kparam_block_sysfs_write(a)
#define kparam_unblock_sysfs_write(a)
+/* mask va_format as RHEL6 backports this */
+#define va_format compat_va_format
+
struct va_format {
const char *fmt;
va_list *va;
extern struct kobj_ns_type_operations net_ns_type_operations;
+/* mask skb_checksum_none_assert as RHEL6 backports this */
+#define skb_checksum_none_assert(a) compat_skb_checksum_none_assert(a)
+
/**
* skb_checksum_none_assert - make sure skb ip_summed is CHECKSUM_NONE
* @skb: skb to check
#define netdev_refcnt_read(a) atomic_read(&a->refcnt)
+/* mask vzalloc as RHEL6 backports this */
+#define vzalloc(a) compat_vzalloc(a)
+
extern void *vzalloc(unsigned long size);
#define rtnl_dereference(p) \