X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=kerncompat.h;h=fa96715fb70cef75e8c95603f5034a39d57a268e;hb=6d3fea8f46568ae9f54bd50f9de2aeeb76e0cd23;hp=958bea43075107437e74af8fc9b33e9642434bad;hpb=df32b5fa2298dab7fb3ee955c3f496570c20d5de;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/kerncompat.h b/kerncompat.h index 958bea4..fa96715 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -317,11 +317,13 @@ static inline void assert_trace(const char *assertion, const char *filename, #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) +#ifndef __bitwise #ifdef __CHECKER__ #define __bitwise __bitwise__ #else #define __bitwise -#endif +#endif /* __CHECKER__ */ +#endif /* __bitwise */ /* Alignment check */ #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)