This backports: commit a599b0f54d233d0f63d6be9a2ff0049d24751669 Author: Joe Perches <joe@xxxxxxxxxxx> Date: Tue May 8 18:56:45 2012 +0000 etherdevice.h: Add ether_addr_equal Add a boolean function to check if 2 ethernet addresses are the same. This is to avoid any confusion about compare_ether_addr returning an unsigned, and not being able to use the compare_ether_addr function for sorting ala memcmp. Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> [root@ozzyfedora compat]# bin/ckmake Trying kernel 3.3.4-5.fc17.x86_64 [OK] Signed-off-by: Ozan Çağlayan <ozancag@xxxxxxxxx> --- include/linux/compat-3.5.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/compat-3.5.h b/include/linux/compat-3.5.h index 554d347..a83266b 100644 --- a/include/linux/compat-3.5.h +++ b/include/linux/compat-3.5.h @@ -3,6 +3,7 @@ #include <linux/version.h> #include <linux/fs.h> +#include <linux/etherdevice.h> #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) @@ -12,6 +13,12 @@ extern int simple_open(struct inode *inode, struct file *file); #define tty_lock(__tty) tty_lock() #define tty_unlock(__tty) tty_unlock() +/* Backport ether_addr_equal */ +static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2) +{ + return !compare_ether_addr(addr1, addr2); +} + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ #endif /* LINUX_3_5_COMPAT_H */ -- 1.7.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html