tree:
https://github.com/jimc/linux.git dd-drm-next
head: 35b983deeffc9a69ebb7f36c98583492baaff18f
commit: 13595be14ee22859c794542d847670ab9bf69897 [12/16] drm_print: add choice to use
dynamic debug in drm-debug
config: riscv-randconfig-c006-20211019 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
d245f2e8597bfb52c34810a328d42b990e4af1a4)
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/13595be14ee22859c794542d847670ab9bf6...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 13595be14ee22859c794542d847670ab9bf69897
# 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
12545e4a8c962b Jim Cromie 2021-07-30 47
12545e4a8c962b Jim Cromie 2021-07-30 48 #define
DC_DYNDBG_BITMAP_DESC(name) \
12545e4a8c962b Jim Cromie 2021-07-30 49 "Control pr_debugs via
/sys/module/amdgpu/parameters/" #name \
12545e4a8c962b Jim Cromie 2021-07-30 50 ", where each bit controls a debug
category.\n" \
12545e4a8c962b Jim Cromie 2021-07-30 51 help_(0, "[SURFACE]:") \
12545e4a8c962b Jim Cromie 2021-07-30 52 help_(1, "[CURSOR]:") \
12545e4a8c962b Jim Cromie 2021-07-30 53 help_(2, "[PFLIP]:") \
12545e4a8c962b Jim Cromie 2021-07-30 54 help_(3, "[VBLANK]:") \
12545e4a8c962b Jim Cromie 2021-07-30 55 help_(4,
"[HW_LINK_TRAINING]:") \
12545e4a8c962b Jim Cromie 2021-07-30 56 help_(5, "[HW_AUDIO]:") \
12545e4a8c962b Jim Cromie 2021-07-30 57 help_(6, "[SCALER]:") \
12545e4a8c962b Jim Cromie 2021-07-30 58 help_(7, "[BIOS]:") \
12545e4a8c962b Jim Cromie 2021-07-30 59 help_(8,
"[BANDWIDTH_CALCS]:") \
12545e4a8c962b Jim Cromie 2021-07-30 60 help_(9, "[DML]:") \
12545e4a8c962b Jim Cromie 2021-07-30 61 help_(10,
"[IF_TRACE]:") \
12545e4a8c962b Jim Cromie 2021-07-30 62 help_(11, "[GAMMA]:") \
12545e4a8c962b Jim Cromie 2021-07-30 63 help_(12, "[SMU_MSG]:")
5d4b05ddd826d8 Bhawanpreet Lakha 2018-03-15 64
12545e4a8c962b Jim Cromie 2021-07-30 @65 DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc,
__debug_dc,
12545e4a8c962b Jim Cromie 2021-07-30 66 DC_DYNDBG_BITMAP_DESC(debug_dc),
12545e4a8c962b Jim Cromie 2021-07-30 67 [0] = { "[CURSOR]:" },
12545e4a8c962b Jim Cromie 2021-07-30 68 [1] = { "[PFLIP]:" },
12545e4a8c962b Jim Cromie 2021-07-30 69 [2] = { "[VBLANK]:" },
12545e4a8c962b Jim Cromie 2021-07-30 70 [3] = {
"[HW_LINK_TRAINING]:" },
12545e4a8c962b Jim Cromie 2021-07-30 71 [4] = { "[HW_AUDIO]:" },
12545e4a8c962b Jim Cromie 2021-07-30 72 [5] = { "[SCALER]:" },
12545e4a8c962b Jim Cromie 2021-07-30 73 [6] = { "[BIOS]:" },
12545e4a8c962b Jim Cromie 2021-07-30 74 [7] = {
"[BANDWIDTH_CALCS]:" },
12545e4a8c962b Jim Cromie 2021-07-30 75 [8] = { "[DML]:" },
12545e4a8c962b Jim Cromie 2021-07-30 76 [9] = { "[IF_TRACE]:" },
12545e4a8c962b Jim Cromie 2021-07-30 77 [10] = { "[GAMMA]:" },
12545e4a8c962b Jim Cromie 2021-07-30 78 [11] = { "[SMU_MSG]:" });
12545e4a8c962b Jim Cromie 2021-07-30 79
:::::: The code at line 65 was first introduced by commit
:::::: 12545e4a8c962b8c534fd0792f972cde3b91da0f 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