dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [radeon-alex:amd-20.45 1835/2427] drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:788:5: error: redefinition of 'amdgpu_mn_register'
@ 2020-12-15  4:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-15  4:28 UTC (permalink / raw)
  To: Flora Cui; +Cc: clang-built-linux, Felix Kuehling, kbuild-all, dri-devel

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

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head:   a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: 90e75e02fc4f30c8139b7321f8bbd635ec9d75ce [1835/2427] drm/amdkcl: dkms support for hmm
config: x86_64-randconfig-a002-20201214 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a29ecca7819a6ed4250d3689b12b1f664bb790d7)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        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=clang make.cross ARCH=x86_64 

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/amdgpu_mn.c:788:5: error: redefinition of 'amdgpu_mn_register'
   int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr)
       ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h:70:19: note: previous definition is here
   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'
   void amdgpu_mn_unregister(struct amdgpu_bo *bo)
        ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_mn.h:76:20: note: previous definition is here
   static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {}
                      ^
   2 errors generated.

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@lists.01.org

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

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

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

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

only message in thread, other threads:[~2020-12-15  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-15  4:28 [radeon-alex:amd-20.45 1835/2427] drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:788:5: error: redefinition of 'amdgpu_mn_register' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox