Message ID | 20201213060515.yAjN3k7sP%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] kbuild-avoid-static_assert-for-genksyms.patch removed from -mm tree | expand |
--- a/include/linux/build_bug.h~kbuild-avoid-static_assert-for-genksyms +++ a/include/linux/build_bug.h @@ -77,4 +77,9 @@ #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) +#ifdef __GENKSYMS__ +/* genksyms gets confused by _Static_assert */ +#define _Static_assert(expr, ...) +#endif + #endif /* _LINUX_BUILD_BUG_H */