* [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'
@ 2021-03-10 12:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-10 12:59 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-10 12:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 12:59 [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' kernel test robot
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.