[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111110513.tbo6D3sD-lkp@intel.com>
Date: Thu, 11 Nov 2021 05:04:47 +0800
From: kernel test robot <lkp@...el.com>
To: Alex Deucher <alexander.deucher@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Dave Airlie <airlied@...hat.com>
Subject: drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: error: no previous
prototype for 'amdgpu_ras_mca_query_error_status'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89d714ab6043bca7356b5c823f5335f5dce1f930
commit: 1e3944578b749449bd7fa6bf0bae4c3d3f5f1733 Merge tag 'amd-drm-next-5.16-2021-09-27' of https://gitlab.freedesktop.org/agd5f/linux into drm-next
date: 6 weeks ago
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1e3944578b749449bd7fa6bf0bae4c3d3f5f1733
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1e3944578b749449bd7fa6bf0bae4c3d3f5f1733
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:64:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
>> drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2656:12: error: variable 'temp' set but not used [-Werror=unused-but-set-variable]
2656 | uint64_t temp;
| ^~~~
cc1: all warnings being treated as errors
--
>> 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
c030f2e4166c3f xinhui pan 2018-10-31 856
640ae42efb828b John Clements 2021-09-22 857
640ae42efb828b John Clements 2021-09-22 @858 void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
640ae42efb828b John Clements 2021-09-22 859 struct ras_common_if *ras_block,
640ae42efb828b John Clements 2021-09-22 860 struct ras_err_data *err_data)
640ae42efb828b John Clements 2021-09-22 861 {
640ae42efb828b John Clements 2021-09-22 862 switch (ras_block->sub_block_index) {
640ae42efb828b John Clements 2021-09-22 863 case AMDGPU_RAS_MCA_BLOCK__MP0:
640ae42efb828b John Clements 2021-09-22 864 if (adev->mca.mp0.ras_funcs &&
640ae42efb828b John Clements 2021-09-22 865 adev->mca.mp0.ras_funcs->query_ras_error_count)
640ae42efb828b John Clements 2021-09-22 866 adev->mca.mp0.ras_funcs->query_ras_error_count(adev, &err_data);
640ae42efb828b John Clements 2021-09-22 867 break;
640ae42efb828b John Clements 2021-09-22 868 case AMDGPU_RAS_MCA_BLOCK__MP1:
640ae42efb828b John Clements 2021-09-22 869 if (adev->mca.mp1.ras_funcs &&
640ae42efb828b John Clements 2021-09-22 870 adev->mca.mp1.ras_funcs->query_ras_error_count)
640ae42efb828b John Clements 2021-09-22 871 adev->mca.mp1.ras_funcs->query_ras_error_count(adev, &err_data);
640ae42efb828b John Clements 2021-09-22 872 break;
640ae42efb828b John Clements 2021-09-22 873 case AMDGPU_RAS_MCA_BLOCK__MPIO:
640ae42efb828b John Clements 2021-09-22 874 if (adev->mca.mpio.ras_funcs &&
640ae42efb828b John Clements 2021-09-22 875 adev->mca.mpio.ras_funcs->query_ras_error_count)
640ae42efb828b John Clements 2021-09-22 876 adev->mca.mpio.ras_funcs->query_ras_error_count(adev, &err_data);
640ae42efb828b John Clements 2021-09-22 877 break;
640ae42efb828b John Clements 2021-09-22 878 default:
640ae42efb828b John Clements 2021-09-22 879 break;
640ae42efb828b John Clements 2021-09-22 880 }
640ae42efb828b John Clements 2021-09-22 881 }
640ae42efb828b 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@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (66471 bytes)
Powered by blists - more mailing lists