Messages in this thread | | | Date | Wed, 10 Nov 2021 12:59:13 +0800 | From | kernel test robot <> | Subject | [krzk-github:n/power-max17042-maint 3863/3946] drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: error: no previous prototype for 'amdgpu_ras_mca_query_error_status' |
| |
tree: https://github.com/krzk/linux n/power-max17042-maint head: 6571f83efc55435b05ab8080fd5d22ba46185a08 commit: d8c961d42a98c0857693c2df100f4973bd325a52 [3863/3946] Merge branch 'drm-next' of https://gitlab.freedesktop.org/agd5f/linux config: s390-buildonly-randconfig-r004-20210928 (attached as .config) compiler: s390-linux-gcc (GCC) 11.2.0 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 # https://github.com/krzk/linux/commit/d8c961d42a98c0857693c2df100f4973bd325a52 git remote add krzk-github https://github.com/krzk/linux git fetch --no-tags krzk-github n/power-max17042-maint git checkout d8c961d42a98c0857693c2df100f4973bd325a52 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390
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_ras.c:858:6: error: no previous prototype for 'amdgpu_ras_mca_query_error_status' [-Werror=missing-prototypes] 858 | void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
vim +/amdgpu_ras_mca_query_error_status +858 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
c030f2e4166c3f5 xinhui pan 2018-10-31 856 640ae42efb828be John Clements 2021-09-22 857 640ae42efb828be John Clements 2021-09-22 @858 void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev, 640ae42efb828be John Clements 2021-09-22 859 struct ras_common_if *ras_block, 640ae42efb828be John Clements 2021-09-22 860 struct ras_err_data *err_data) 640ae42efb828be John Clements 2021-09-22 861 { 640ae42efb828be John Clements 2021-09-22 862 switch (ras_block->sub_block_index) { 640ae42efb828be John Clements 2021-09-22 863 case AMDGPU_RAS_MCA_BLOCK__MP0: 640ae42efb828be John Clements 2021-09-22 864 if (adev->mca.mp0.ras_funcs && 640ae42efb828be John Clements 2021-09-22 865 adev->mca.mp0.ras_funcs->query_ras_error_count) 640ae42efb828be John Clements 2021-09-22 866 adev->mca.mp0.ras_funcs->query_ras_error_count(adev, &err_data); 640ae42efb828be John Clements 2021-09-22 867 break; 640ae42efb828be John Clements 2021-09-22 868 case AMDGPU_RAS_MCA_BLOCK__MP1: 640ae42efb828be John Clements 2021-09-22 869 if (adev->mca.mp1.ras_funcs && 640ae42efb828be John Clements 2021-09-22 870 adev->mca.mp1.ras_funcs->query_ras_error_count) 640ae42efb828be John Clements 2021-09-22 871 adev->mca.mp1.ras_funcs->query_ras_error_count(adev, &err_data); 640ae42efb828be John Clements 2021-09-22 872 break; 640ae42efb828be John Clements 2021-09-22 873 case AMDGPU_RAS_MCA_BLOCK__MPIO: 640ae42efb828be John Clements 2021-09-22 874 if (adev->mca.mpio.ras_funcs && 640ae42efb828be John Clements 2021-09-22 875 adev->mca.mpio.ras_funcs->query_ras_error_count) 640ae42efb828be John Clements 2021-09-22 876 adev->mca.mpio.ras_funcs->query_ras_error_count(adev, &err_data); 640ae42efb828be John Clements 2021-09-22 877 break; 640ae42efb828be John Clements 2021-09-22 878 default: 640ae42efb828be John Clements 2021-09-22 879 break; 640ae42efb828be John Clements 2021-09-22 880 } 640ae42efb828be John Clements 2021-09-22 881 } 640ae42efb828be John Clements 2021-09-22 882
:::::: The code at line 858 was first introduced by commit :::::: 640ae42efb828be69a9ee6ac88fb3d5a3e678ddf drm/amdgpu: Updated RAS infrastructure
:::::: TO: John Clements <john.clements@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@lists.01.org [unhandled content-type:application/gzip] | |