wireless: add definitions for VHT MCS support
[carl9170fw.git] / include / linux / compiler.h
index f6f144449a78d8c3ff687d879f340b51bfe2dc08..b81bf1472800404745d444e0412f2e8304884a5f 100644 (file)
@@ -27,6 +27,7 @@
 #define __section(s)   __attribute__((section("." # s)))
 #define __aligned(a)   __attribute__((aligned(a)))
 #define __packed       __attribute__((packed))
+#define __visible      __attribute__((externally_visible))
 
 #define BUILD_BUG_ON(condition)        ((void)sizeof(char[1 - 2*!!(condition)]))
 #define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
@@ -78,7 +79,7 @@
 
 #define container_of(ptr, type, member) ({                     \
        const typeof(((type *)0)->member) * __mptr = (ptr);     \
-       (type *)((char *)__mptr - offsetof(type, member)); })
+       (type *)(((unsigned long)__mptr - offsetof(type, member))); })
 
 #define MAX_ERRNO      4095