[radeon-alex:amd-20.45 1835/2417] drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:788:5: error: redefinition of 'amdgpu_mn_register'

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head:   1807abbb3a7f17fc931a15d7fd4365ea148c6bb1
commit: 90e75e02fc4f30c8139b7321f8bbd635ec9d75ce [1835/2417] drm/amdkcl: dkms support for hmm
config: sparc-randconfig-c004-20201120 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
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 radeon-alex git://people.freedesktop.org/~agd5f/linux.git
        git fetch --no-tags radeon-alex amd-20.45
        git checkout 90e75e02fc4f30c8139b7321f8bbd635ec9d75ce
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc 

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:788:5: error: redefinition of 'amdgpu_mn_register'
     788 | int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr)
         |     ^~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:85,
                    from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:18,
                    from <command-line>:
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h:70:19: note: previous definition of 'amdgpu_mn_register' was here
      70 | static inline int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr)
         |                   ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:806:6: error: redefinition of 'amdgpu_mn_unregister'
     806 | void amdgpu_mn_unregister(struct amdgpu_bo *bo)
         |      ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:85,
                    from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:18,
                    from <command-line>:
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h:76:20: note: previous definition of 'amdgpu_mn_unregister' was here
      76 | static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {}
         |                    ^~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:18,
                    from <command-line>:
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:195:19: warning: 'debug_evictions' defined but not used [-Wunused-const-variable=]
     195 | static const bool debug_evictions; /* = false */
         |                   ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu.h:194:18: warning: 'sched_policy' defined but not used [-Wunused-const-variable=]
     194 | static const int sched_policy = KFD_SCHED_POLICY_HWS;
         |                  ^~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/display/dc/dc_types.h:33,
                    from drivers/gpu/drm/amd/display/dc/dm_services_types.h:30,
                    from drivers/gpu/drm/amd/include/dm_pp_interface.h:26,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu.h:64,
                    from drivers/gpu/drm/amd/backport/include/kcl/kcl_amdgpu.h:6,
                    from drivers/gpu/drm/amd/backport/backport.h:18,
                    from <command-line>:
   drivers/gpu/drm/amd/display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=]
      76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL };
         |                                ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=]
      75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL };
         |                                ^~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=]
      74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL };
         |                                ^~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=]
      73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL };
         |                                ^~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=]
      72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL };
         |                                ^~~~~~~~~~~
   drivers/gpu/drm/amd/display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=]
      67 | static const struct fixed31_32 dc_fixpt_zero = { 0 };
         |                                ^~~~~~~~~~~~~

vim +/amdgpu_mn_register +788 drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c

   778	
   779	/**
   780	 * amdgpu_mn_register - register a BO for notifier updates
   781	 *
   782	 * @bo: amdgpu buffer object
   783	 * @addr: userptr addr we should monitor
   784	 *
   785	 * Registers a mmu_notifier for the given BO at the specified address.
   786	 * Returns 0 on success, -ERRNO if anything goes wrong.
   787	 */
 > 788	int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr)
   789	{
   790		if (bo->kfd_bo)
   791			return mmu_interval_notifier_insert(&bo->notifier, current->mm,
   792							    addr, amdgpu_bo_size(bo),
   793							    &amdgpu_mn_hsa_ops);
   794		return mmu_interval_notifier_insert(&bo->notifier, current->mm, addr,
   795						    amdgpu_bo_size(bo),
   796						    &amdgpu_mn_gfx_ops);
   797	}
   798	
   799	/**
   800	 * amdgpu_mn_unregister - unregister a BO for notifier updates
   801	 *
   802	 * @bo: amdgpu buffer object
   803	 *
   804	 * Remove any registration of mmu notifier updates from the buffer object.
   805	 */
 > 806	void amdgpu_mn_unregister(struct amdgpu_bo *bo)

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[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