mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: error: no previous prototype for 'amdgpu_ras_mca_query_error_status'
@ 2021-11-10 21:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-10 21:04 UTC (permalink / raw)
  To: Alex Deucher; +Cc: kbuild-all, linux-kernel, Dave Airlie

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

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@intel.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@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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-10 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 21:04 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: error: no previous prototype for 'amdgpu_ras_mca_query_error_status' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome