dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Flora Cui <flora.cui@amd.com>
Cc: clang-built-linux@googlegroups.com,
	Felix Kuehling <Felix.Kuehling@amd.com>,
	kbuild-all@lists.01.org, dri-devel@lists.freedesktop.org
Subject: [radeon-alex:amd-20.45 1835/2427] drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c:788:5: error: redefinition of 'amdgpu_mn_register'
Date: Tue, 15 Dec 2020 12:28:27 +0800	[thread overview]
Message-ID: <202012151224.AjVOadi4-lkp@intel.com> (raw)

[-- 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

                 reply	other threads:[~2020-12-15  4:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202012151224.AjVOadi4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Felix.Kuehling@amd.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=flora.cui@amd.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox