All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-drm-next 5/8] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:66:1: error: expected identifier or '('
@ 2021-09-03  0:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03  0:16 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6483 bytes --]

tree:   https://github.com/jimc/linux.git dd-drm-next
head:   f9f185054f04be5d359668104afd61f5ae6aae56
commit: 83a158f0e8c7b09dd9241c9f71f200b07caf1705 [5/8] drm_print: add choice to use dynamic debug in drm-debug
config: i386-randconfig-a006-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c9948e9254fbb6ea00f66c7b4542311d21e060be)
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
        # https://github.com/jimc/linux/commit/83a158f0e8c7b09dd9241c9f71f200b07caf1705
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc dd-drm-next
        git checkout 83a158f0e8c7b09dd9241c9f71f200b07caf1705
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:66:1: error: expected identifier or '('
   DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc,
   ^
   include/linux/dynamic_debug.h:279: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:328:2: note: expanded from macro 'compiletime_assert'
           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
           ^
   include/linux/compiler_types.h:316:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:306:2: note: expanded from macro '__compiletime_assert'
           do {                                                            \
           ^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:66:1: error: expected identifier or '('
   include/linux/dynamic_debug.h:279: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:328:2: note: expanded from macro 'compiletime_assert'
           _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
           ^
   include/linux/compiler_types.h:316:2: note: expanded from macro '_compiletime_assert'
           __compiletime_assert(condition, msg, prefix, suffix)
           ^
   include/linux/compiler_types.h:310:4: note: expanded from macro '__compiletime_assert'
           } while (0)
             ^
   2 errors generated.


vim +66 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c

5d4b05ddd826d8 Bhawanpreet Lakha 2018-03-15  47  
1c6f394bfc6b72 Jim Cromie        2021-07-30  48  /* Id like to do these inside DEFINE_DYNAMIC_DEBUG_CATEGORIES, if possible */
1c6f394bfc6b72 Jim Cromie        2021-07-30  49  #define DC_DYNDBG_BITMAP_DESC(name)					\
1c6f394bfc6b72 Jim Cromie        2021-07-30  50  	"Control pr_debugs via /sys/module/amdgpu/parameters/" #name	\
1c6f394bfc6b72 Jim Cromie        2021-07-30  51  	", where each bit controls a debug category.\n"			\
1c6f394bfc6b72 Jim Cromie        2021-07-30  52  	_help_("[SURFACE]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  53  	_help_("[CURSOR]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  54  	_help_("[PFLIP]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  55  	_help_("[VBLANK]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  56  	_help_("[HW_LINK_TRAINING]:")					\
1c6f394bfc6b72 Jim Cromie        2021-07-30  57  	_help_("[HW_AUDIO]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  58  	_help_("[SCALER]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  59  	_help_("[BIOS]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  60  	_help_("[BANDWIDTH_CALCS]:")					\
1c6f394bfc6b72 Jim Cromie        2021-07-30  61  	_help_("[DML]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  62  	_help_("[IF_TRACE]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  63  	_help_("[GAMMA]:")						\
1c6f394bfc6b72 Jim Cromie        2021-07-30  64  	_help_("[SMU_MSG]:")
1c6f394bfc6b72 Jim Cromie        2021-07-30  65  
1c6f394bfc6b72 Jim Cromie        2021-07-30 @66  DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc,
1c6f394bfc6b72 Jim Cromie        2021-07-30  67  	DC_DYNDBG_BITMAP_DESC(debug_dc),
1c6f394bfc6b72 Jim Cromie        2021-07-30  68  	_DD_cat_("^[CURSOR]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  69  	_DD_cat_("^[PFLIP]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  70  	_DD_cat_("^[VBLANK]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  71  	_DD_cat_("^[HW_LINK_TRAINING]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  72  	_DD_cat_("^[HW_AUDIO]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  73  	_DD_cat_("^[SCALER]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  74  	_DD_cat_("^[BIOS]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  75  	_DD_cat_("^[BANDWIDTH_CALCS]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  76  	_DD_cat_("^[DML]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  77  	_DD_cat_("^[IF_TRACE]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  78  	_DD_cat_("^[GAMMA]:"),
1c6f394bfc6b72 Jim Cromie        2021-07-30  79  	_DD_cat_("^[SMU_MSG]:"));
1c6f394bfc6b72 Jim Cromie        2021-07-30  80  #endif
1c6f394bfc6b72 Jim Cromie        2021-07-30  81  

:::::: The code at line 66 was first introduced by commit
:::::: 1c6f394bfc6b728312ee5e7aeb6af1cc9fcf49a6 amdgpu: use DEFINE_DYNAMIC_DEBUG_CATEGORIES

:::::: TO: Jim Cromie <jim.cromie@gmail.com>
:::::: CC: Jim Cromie <jim.cromie@gmail.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37070 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-03  0:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03  0:16 [jimc:dd-drm-next 5/8] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:66:1: error: expected identifier or '(' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.