Skip to contentSkip to conversation

drivers/gpu/drm/msm/msm_drv.c:59:1: error: type defaults to 'int' in declaration of 'DECLARE_FAULT_ATTR'

PATCH kernel test robot 1 participant 1 message Oct 10, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://gitlab.freedesktop.org/drm/msm.git msm-next
head:   506efcba31296e9cbc4f8f148eec1e4b29039931
commit: 506efcba31296e9cbc4f8f148eec1e4b29039931 [31/31] drm/msm: carve out KMS code from msm_drv.c
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20231010/[email protected]/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231010/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All error/warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/msm_drv.c:59:1: warning: data definition has no type or storage class
      59 | DECLARE_FAULT_ATTR(fail_gem_alloc);
         | ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/msm_drv.c:59:1: error: type defaults to 'int' in declaration of 'DECLARE_FAULT_ATTR' [-Werror=implicit-int]
>> drivers/gpu/drm/msm/msm_drv.c:59:1: warning: parameter names (without types) in function declaration
   drivers/gpu/drm/msm/msm_drv.c:60:1: warning: data definition has no type or storage class
      60 | DECLARE_FAULT_ATTR(fail_gem_iova);
         | ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/msm_drv.c:60:1: error: type defaults to 'int' in declaration of 'DECLARE_FAULT_ATTR' [-Werror=implicit-int]
   drivers/gpu/drm/msm/msm_drv.c:60:1: warning: parameter names (without types) in function declaration
   drivers/gpu/drm/msm/msm_drv.c: In function 'msm_ioctl_gem_new':
>> drivers/gpu/drm/msm/msm_drv.c:452:13: error: implicit declaration of function 'should_fail' [-Werror=implicit-function-declaration]
     452 |         if (should_fail(&fail_gem_alloc, args->size))
         |             ^~~~~~~~~~~

cc1: some warnings being treated as errors

vim +59 drivers/gpu/drm/msm/msm_drv.c

ba4dd71828bce7 Rob Clark 2017-07-06 57

6d29709de8028c Rob Clark 2022-08-07  58  #ifdef CONFIG_FAULT_INJECTION
6d29709de8028c Rob Clark 2022-08-07 @59  DECLARE_FAULT_ATTR(fail_gem_alloc);
6d29709de8028c Rob Clark 2022-08-07  60  DECLARE_FAULT_ATTR(fail_gem_iova);
6d29709de8028c Rob Clark 2022-08-07  61  #endif

6d29709de8028c Rob Clark 2022-08-07 62

:::::: The code at line 59 was first introduced by commit
:::::: 6d29709de8028cfd5a827d02f93a5076ba632563 drm/msm: Add fault-injection support

:::::: TO: Rob Clark <[email protected]>
:::::: CC: Rob Clark <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki