build failure of next-20221005 due to 9dcf746befa7 ("LoongArch: Use generic BUG() handler")

From: Sudip Mukherjee (Codethink)
Date: Wed Oct 05 2022 - 07:54:17 EST


Hi All,

The builds of loongarch allmodconfig have failed to build next-20221005
with error:

./arch/loongarch/include/asm/cmpxchg.h: In function '__cmpxchg':
././include/linux/compiler_types.h:357:45: error: call to '__compiletime_assert_2' declared with attribute error: BUILD_BUG failed
357 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
././include/linux/compiler_types.h:338:25: note: in definition of macro '__compiletime_assert'
338 | prefix ## suffix(); \
| ^~~~~~
././include/linux/compiler_types.h:357:9: note: in expansion of macro '_compiletime_assert'
357 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG'
59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
| ^~~~~~~~~~~~~~~~
./arch/loongarch/include/asm/cmpxchg.h:179:17: note: in expansion of macro 'BUILD_BUG'
179 | BUILD_BUG();
| ^~~~~~~~~


git bisect pointed to 9dcf746befa7 ("LoongArch: Use generic BUG() handler")

I will be happy to test any patch or provide any extra log if needed.


--
Regards
Sudip