tree: https://github.com/jimc/linux.git dd-drm-next head: 02a6c357b6a5eb02cc6b2ceb5a7a93c809388ae0 commit: d486567f7959a84cd951ec7af2951e6698e8eeef drm_print: add choice to use dynamic debug in drm-debug config: x86_64-randconfig-s021-20210912 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce: git remote add jimc https://github.com/jimc/linux.git git fetch --no-tags jimc dd-drm-next git checkout d486567f7959a84cd951ec7af2951e6698e8eeef # save the attached .config to linux build tree make ARCH=x86_64 olddefconfig make ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from : >> include/linux/compiler_types.h:306:2: error: expected identifier or '(' before 'do' 306 | do { \ | ^~ include/linux/compiler_types.h:316:2: note: in expansion of macro '__compiletime_assert' 316 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' 328 | _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/dynamic_debug.h:282:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' 282 | BUILD_BUG_ON_MSG(1, "you need -DDYNAMIC_DEBUG_MODULE in compile") | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES' 65 | DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> include/linux/compiler_types.h:310:4: error: expected identifier or '(' before 'while' 310 | } while (0) | ^~~~~ include/linux/compiler_types.h:316:2: note: in expansion of macro '__compiletime_assert' 316 | __compiletime_assert(condition, msg, prefix, suffix) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler_types.h:328:2: note: in expansion of macro '_compiletime_assert' 328 | _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/dynamic_debug.h:282:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' 282 | BUILD_BUG_ON_MSG(1, "you need -DDYNAMIC_DEBUG_MODULE in compile") | ^~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES' 65 | DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +306 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 303 eb5c2d4b45e3d2 Will Deacon 2020-07-21 304 #ifdef __OPTIMIZE__ eb5c2d4b45e3d2 Will Deacon 2020-07-21 305 # define __compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @306 do { \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 extern void prefix ## suffix(void) __compiletime_error(msg); \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 if (!(condition)) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 309 prefix ## suffix(); \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @310 } while (0) eb5c2d4b45e3d2 Will Deacon 2020-07-21 311 #else eb5c2d4b45e3d2 Will Deacon 2020-07-21 312 # define __compiletime_assert(condition, msg, prefix, suffix) do { } while (0) eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 #endif eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 :::::: The code at line 306 was first introduced by commit :::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h :::::: TO: Will Deacon :::::: CC: Will Deacon --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org