tree:
https://github.com/jimc/linux.git dd-drm-next
head: 8e0c85a2010a36354184c65709a962ab14e7c468
commit: e6ebbf990370664571ceb62eb76632ecd5d73805 [6/10] drm_print: add choice to use
dynamic debug in drm-debug
config: riscv-randconfig-r035-20211019 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
92a0389b0425a9535a99a0ce13ba0eeda2bce7ad)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://github.com/jimc/linux/commit/e6ebbf990370664571ceb62eb76632ecd5d7...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout e6ebbf990370664571ceb62eb76632ecd5d73805
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1:
error: expected identifier or '('
DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc,
^
include/linux/dynamic_debug.h:277:2: note: expanded from macro
'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
BUILD_BUG_ON_MSG(1, "you need -DDYNAMIC_DEBUG_MODULE in compile")
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:2: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:2: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:300:2: note: expanded from macro
'__compiletime_assert'
do { \
^
> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1:
error: expected identifier or '('
include/linux/dynamic_debug.h:277:2:
note: expanded from macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
BUILD_BUG_ON_MSG(1, "you need -DDYNAMIC_DEBUG_MODULE in compile")
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:2: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:2: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:304:4: note: expanded from macro
'__compiletime_assert'
} while (0)
^
2 errors generated.
vim +65 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c
f3f5d7e4252e4a Jim Cromie 2021-07-30 47
f3f5d7e4252e4a Jim Cromie 2021-07-30 48 #define
DC_DYNDBG_BITMAP_DESC(name) \
f3f5d7e4252e4a Jim Cromie 2021-07-30 49 "Control pr_debugs via
/sys/module/amdgpu/parameters/" #name \
f3f5d7e4252e4a Jim Cromie 2021-07-30 50 ", where each bit controls a debug
category.\n" \
f3f5d7e4252e4a Jim Cromie 2021-07-30 51 help_(0, "[SURFACE]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 52 help_(1, "[CURSOR]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 53 help_(2, "[PFLIP]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 54 help_(3, "[VBLANK]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 55 help_(4,
"[HW_LINK_TRAINING]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 56 help_(5, "[HW_AUDIO]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 57 help_(6, "[SCALER]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 58 help_(7, "[BIOS]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 59 help_(8,
"[BANDWIDTH_CALCS]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 60 help_(9, "[DML]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 61 help_(10,
"[IF_TRACE]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 62 help_(11, "[GAMMA]:") \
f3f5d7e4252e4a Jim Cromie 2021-07-30 63 help_(12, "[SMU_MSG]:")
5d4b05ddd826d8 Bhawanpreet Lakha 2018-03-15 64
f3f5d7e4252e4a Jim Cromie 2021-07-30 @65 DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc,
__debug_dc,
f3f5d7e4252e4a Jim Cromie 2021-07-30 66 DC_DYNDBG_BITMAP_DESC(debug_dc),
f3f5d7e4252e4a Jim Cromie 2021-07-30 67 [0] = { "[CURSOR]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 68 [1] = { "[PFLIP]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 69 [2] = { "[VBLANK]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 70 [3] = {
"[HW_LINK_TRAINING]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 71 [4] = { "[HW_AUDIO]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 72 [5] = { "[SCALER]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 73 [6] = { "[BIOS]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 74 [7] = {
"[BANDWIDTH_CALCS]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 75 [8] = { "[DML]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 76 [9] = { "[IF_TRACE]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 77 [10] = { "[GAMMA]:" },
f3f5d7e4252e4a Jim Cromie 2021-07-30 78 [11] = { "[SMU_MSG]:" });
f3f5d7e4252e4a Jim Cromie 2021-07-30 79
:::::: The code at line 65 was first introduced by commit
:::::: f3f5d7e4252e4a64207d6e4a41819770e50ec1db amdgpu: use dyndbg.CATEGORIES to control
existing pr_dbgs
:::::: TO: Jim Cromie <jim.cromie(a)gmail.com>
:::::: CC: Jim Cromie <jim.cromie(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org