[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'; did you mean 'MMIO_RAW_WRITE_VFUNCS'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        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
        make W=1 ARCH=i386 

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

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: In function 'mock_uncore_init':
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:47:2: error: implicit declaration of function 'ASSIGN_RAW_WRITE_MMIO_VFUNCS'; did you mean 'MMIO_RAW_WRITE_VFUNCS'? [-Werror=implicit-function-declaration]
      47 |  ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |  MMIO_RAW_WRITE_VFUNCS
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:47:39: error: 'nop' undeclared (first use in this function); did you mean 'nopv'?
      47 |  ASSIGN_RAW_WRITE_MMIO_VFUNCS(uncore, nop);
         |                                       ^~~
         |                                       nopv
   drivers/gpu/drm/i915/selftests/mock_uncore.c:47:39: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:48:2: error: implicit declaration of function 'ASSIGN_RAW_READ_MMIO_VFUNCS' [-Werror=implicit-function-declaration]
      48 |  ASSIGN_RAW_READ_MMIO_VFUNCS(uncore, nop);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   At top level:
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: error: 'nop_read64' defined but not used [-Werror=unused-function]
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: note: in definition of macro '__nop_read'
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: error: 'nop_read32' defined but not used [-Werror=unused-function]
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: note: in definition of macro '__nop_read'
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: error: 'nop_read16' defined but not used [-Werror=unused-function]
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: note: in definition of macro '__nop_read'
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: error: 'nop_read8' defined but not used [-Werror=unused-function]
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:36:1: note: in definition of macro '__nop_read'
      36 | nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
         | ^~~~~~~~
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:29:1: error: 'nop_write32' defined but not used [-Werror=unused-function]
      29 | nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
         | ^~~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:29:1: note: in definition of macro '__nop_write'
      29 | nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
         | ^~~~~~~~~
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:29:1: error: 'nop_write16' defined but not used [-Werror=unused-function]
      29 | nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
         | ^~~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:29:1: note: in definition of macro '__nop_write'
      29 | nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
         | ^~~~~~~~~
>> drivers/gpu/drm/i915/selftests/mock_uncore.c:29:1: error: 'nop_write8' defined but not used [-Werror=unused-function]
      29 | nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
         | ^~~~~~~~~
   drivers/gpu/drm/i915/selftests/mock_uncore.c:29:1: note: in definition of macro '__nop_write'
      29 | nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
         | ^~~~~~~~~
   cc1: all warnings being treated as errors


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

0757ac8fc7c1da Chris Wilson           2017-04-12  26  
0757ac8fc7c1da Chris Wilson           2017-04-12  27  #define __nop_write(x) \
0757ac8fc7c1da Chris Wilson           2017-04-12  28  static void \
a2b4abfc626b13 Daniele Ceraolo Spurio 2019-03-25 @29  nop_write##x(struct intel_uncore *uncore, i915_reg_t reg, u##x val, bool trace) { }
0757ac8fc7c1da Chris Wilson           2017-04-12  30  __nop_write(8)
0757ac8fc7c1da Chris Wilson           2017-04-12  31  __nop_write(16)
0757ac8fc7c1da Chris Wilson           2017-04-12  32  __nop_write(32)
0757ac8fc7c1da Chris Wilson           2017-04-12  33  
0757ac8fc7c1da Chris Wilson           2017-04-12  34  #define __nop_read(x) \
0757ac8fc7c1da Chris Wilson           2017-04-12  35  static u##x \
a2b4abfc626b13 Daniele Ceraolo Spurio 2019-03-25 @36  nop_read##x(struct intel_uncore *uncore, i915_reg_t reg, bool trace) { return 0; }
0757ac8fc7c1da Chris Wilson           2017-04-12  37  __nop_read(8)
0757ac8fc7c1da Chris Wilson           2017-04-12  38  __nop_read(16)
0757ac8fc7c1da Chris Wilson           2017-04-12  39  __nop_read(32)
0757ac8fc7c1da Chris Wilson           2017-04-12  40  __nop_read(64)
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@xxxxxxxxx>
:::::: CC: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux