[drm:i915-uncore-vfunc 30/31] drivers/gpu/drm/i915/selftests/mock_uncore.c:47:2: error: implicit declaration of function 'ASSIGN_RAW_WRITE_MMIO_VFUNCS'

kernel test robot lkp at intel.com
Wed Sep 8 11:46:11 UTC 2021


tree:   git://people.freedesktop.org/~airlied/linux.git i915-uncore-vfunc
head:   b42168f90718a955550b11f2d52306d9aeaa9468
commit: 99aebd17891290abfca80c48eca01f4e02413fb3 [30/31] drm/i915/uncore: constify the register vtables.
config: i386-randconfig-a014-20210908 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9c476172b93367d2cb88d7d3f4b1b5b456fa6020)
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
        git remote add drm git://people.freedesktop.org/~airlied/linux.git
        git fetch --no-tags drm i915-uncore-vfunc
        git checkout 99aebd17891290abfca80c48eca01f4e02413fb3
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/i915/intel_uncore.c:2630:
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:47:2: error: implicit declaration of function 'ASSIGN_RAW_WRITE_MMIO_VFUNCS' [-Werror,-Wimplicit-function-declaration]
           ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
           ^
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:47:39: error: use of undeclared identifier 'nop'; did you mean 'nopv'?
           ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
                                                ^~~
                                                nopv
   arch/x86/include/asm/hypervisor.h:69:13: note: 'nopv' declared here
   extern bool nopv;
               ^
   In file included from drivers/gpu/drm/i915/intel_uncore.c:2630:
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:48:2: error: implicit declaration of function 'ASSIGN_RAW_READ_MMIO_VFUNCS' [-Werror,-Wimplicit-function-declaration]
           ASSIGN_RAW_READ_MMIO_VFUNCS(uncore, nop);
           ^
   drivers/gpu/drm/i915/selftests/mock_uncore.c:48:2: note: did you mean 'ASSIGN_RAW_WRITE_MMIO_VFUNCS'?
   drivers/gpu/drm/i915/selftests/mock_uncore.c:47:2: note: 'ASSIGN_RAW_WRITE_MMIO_VFUNCS' declared here
           ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
           ^
   drivers/gpu/drm/i915/selftests/mock_uncore.c:48:38: error: use of undeclared identifier 'nop'; did you mean 'nopv'?
           ASSIGN_RAW_READ_MMIO_VFUNCS(uncore, nop);
                                               ^~~
                                               nopv
   arch/x86/include/asm/hypervisor.h:69:13: note: 'nopv' declared here
   extern bool nopv;
               ^
   4 errors generated.


vim +/ASSIGN_RAW_WRITE_MMIO_VFUNCS +47 drivers/gpu/drm/i915/selftests/mock_uncore.c

0757ac8fc7c1da Chris Wilson           2017-04-12  41  
d14a701b007063 Chris Wilson           2019-10-08  42  void mock_uncore_init(struct intel_uncore *uncore,
d14a701b007063 Chris Wilson           2019-10-08  43  		      struct drm_i915_private *i915)
0757ac8fc7c1da Chris Wilson           2017-04-12  44  {
d14a701b007063 Chris Wilson           2019-10-08  45  	intel_uncore_init_early(uncore, i915);
d14a701b007063 Chris Wilson           2019-10-08  46  
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 @47  	ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
ccb2aceaaa5f92 Daniele Ceraolo Spurio 2019-06-19 @48  	ASSIGN_RAW_READ_MMIO_VFUNCS(uncore, nop);

:::::: The code at line 47 was first introduced by commit
:::::: ccb2aceaaa5f9267ef7b485b41ae9be3f04b50d3 drm/i915: use vfuncs for reg_read/write_fw_domains

:::::: TO: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
:::::: CC: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33927 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210908/afba7f94/attachment-0001.gz>


More information about the dri-devel mailing list