All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [agd5f:drm-next 269/428] drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:6: warning: no previous prototype for function 'mmhub_v1_7_setup_vm_pt_regs'
Date: Wed, 10 Mar 2021 20:59:04 +0800	[thread overview]
Message-ID: <202103102059.rMLYQAp3-lkp@intel.com> (raw)

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

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   e90c92dc6b09574f7fe2e7e5774a3af30e36c632
commit: fd9d8dc1638adf32164cd193773415154f71fa5f [269/428] drm/amdgpu: Clean up mmhub functions for aldebaran
config: x86_64-randconfig-a014-20210308 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project cd9a69289c7825d54450cb6829fef2c8e0f1963a)
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 agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next
        git checkout fd9d8dc1638adf32164cd193773415154f71fa5f
        # 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 warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:6: warning: no previous prototype for function 'mmhub_v1_7_setup_vm_pt_regs' [-Wmissing-prototypes]
   void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
        ^
   drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
   ^
   static 
   1 warning generated.


vim +/mmhub_v1_7_setup_vm_pt_regs +56 drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c

f37945d50ff519 Le Ma 2020-09-05  55  
f37945d50ff519 Le Ma 2020-09-05 @56  void mmhub_v1_7_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid,
f37945d50ff519 Le Ma 2020-09-05  57  				uint64_t page_table_base)
f37945d50ff519 Le Ma 2020-09-05  58  {
f37945d50ff519 Le Ma 2020-09-05  59  	/* two registers distance between regVM_CONTEXT0_* to regVM_CONTEXT1_* */
f37945d50ff519 Le Ma 2020-09-05  60  	int offset = regVM_CONTEXT1_PAGE_TABLE_BASE_ADDR_LO32
f37945d50ff519 Le Ma 2020-09-05  61  			- regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32;
f37945d50ff519 Le Ma 2020-09-05  62  
f37945d50ff519 Le Ma 2020-09-05  63  	WREG32_SOC15_OFFSET(MMHUB, 0, regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,
f37945d50ff519 Le Ma 2020-09-05  64  			offset * vmid, lower_32_bits(page_table_base));
f37945d50ff519 Le Ma 2020-09-05  65  
f37945d50ff519 Le Ma 2020-09-05  66  	WREG32_SOC15_OFFSET(MMHUB, 0, regVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,
f37945d50ff519 Le Ma 2020-09-05  67  			offset * vmid, upper_32_bits(page_table_base));
f37945d50ff519 Le Ma 2020-09-05  68  }
f37945d50ff519 Le Ma 2020-09-05  69  

:::::: The code at line 56 was first introduced by commit
:::::: f37945d50ff5194449ae1a8f53e862c2bcf43464 drm/amdgpu: add mmhub support for aldebaran (v3)

:::::: TO: Le Ma <le.ma@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

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

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

                 reply	other threads:[~2021-03-10 12:59 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=202103102059.rMLYQAp3-lkp@intel.com \
    --to=lkp@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.