tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 98546348153dee5f8ced572fd6c4690461d20f51 commit: 35fa30bfdfc6bb5f78c35df740baa70f9b7178ab [3851/3917] Merge remote-tracking branch 'amdgpu/drm-next' config: x86_64-randconfig-r012-20210311 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 574a9dabc63ba1e7a04c08d4bde2eacd61b44ce1) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=35fa30bfdfc6bb5f78c35df740baa70f9b7178ab git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 35fa30bfdfc6bb5f78c35df740baa70f9b7178ab # 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@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/smuio_v13_0.c:99: warning: expecting prototype for smuio_v13_0_supports_host_gpu_xgmi(). Prototype was for smuio_v13_0_is_host_gpu_xgmi_supported() instead vim +99 drivers/gpu/drm/amd/amdgpu/smuio_v13_0.c 62f6a0a7d844be Hawking Zhang 2020-10-23 90 62f6a0a7d844be Hawking Zhang 2020-10-23 91 /** 62f6a0a7d844be Hawking Zhang 2020-10-23 92 * smuio_v13_0_supports_host_gpu_xgmi - detect xgmi interface between cpu and gpu/s. 62f6a0a7d844be Hawking Zhang 2020-10-23 93 * 62f6a0a7d844be Hawking Zhang 2020-10-23 94 * @adev: amdgpu device pointer 62f6a0a7d844be Hawking Zhang 2020-10-23 95 * 62f6a0a7d844be Hawking Zhang 2020-10-23 96 * Returns true on success or false otherwise. 62f6a0a7d844be Hawking Zhang 2020-10-23 97 */ 62f6a0a7d844be Hawking Zhang 2020-10-23 98 static bool smuio_v13_0_is_host_gpu_xgmi_supported(struct amdgpu_device *adev) 62f6a0a7d844be Hawking Zhang 2020-10-23 @99 { 62f6a0a7d844be Hawking Zhang 2020-10-23 100 u32 data; 62f6a0a7d844be Hawking Zhang 2020-10-23 101 62f6a0a7d844be Hawking Zhang 2020-10-23 102 data = RREG32_SOC15(SMUIO, 0, regSMUIO_MCM_CONFIG); 62f6a0a7d844be Hawking Zhang 2020-10-23 103 data = REG_GET_FIELD(data, SMUIO_MCM_CONFIG, TOPOLOGY_ID); 62f6a0a7d844be Hawking Zhang 2020-10-23 104 /* data[4:0] 62f6a0a7d844be Hawking Zhang 2020-10-23 105 * bit 0 == 0 host-gpu interface is PCIE 62f6a0a7d844be Hawking Zhang 2020-10-23 106 * bit 0 == 1 host-gpu interface is Alternate Protocal 62f6a0a7d844be Hawking Zhang 2020-10-23 107 * for AMD, this is XGMI 62f6a0a7d844be Hawking Zhang 2020-10-23 108 */ 62f6a0a7d844be Hawking Zhang 2020-10-23 109 data &= SMUIO_MCM_CONFIG__HOST_GPU_XGMI_MASK; 62f6a0a7d844be Hawking Zhang 2020-10-23 110 62f6a0a7d844be Hawking Zhang 2020-10-23 111 return data ? true : false; 62f6a0a7d844be Hawking Zhang 2020-10-23 112 } 62f6a0a7d844be Hawking Zhang 2020-10-23 113 :::::: The code at line 99 was first introduced by commit :::::: 62f6a0a7d844be7ccc8bbd85bb8decac3145f59a drm/amdgpu: implement smuio v13_0 callbacks :::::: TO: Hawking Zhang <Hawking.Zhang@xxxxxxx> :::::: CC: Alex Deucher <alexander.deucher@xxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip