linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: warning: no previous prototype for 'amdgpu_ras_mca_query_error_status'
@ 2021-11-12 22:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-12 22:11 UTC (permalink / raw)
  To: John Clements; +Cc: kbuild-all, linux-kernel, Alex Deucher, Hawking Zhang

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7246f4dcaccc8de76a96a41359d89c3c791579bc
commit: 640ae42efb828be69a9ee6ac88fb3d5a3e678ddf drm/amdgpu: Updated RAS infrastructure
date:   7 weeks ago
config: alpha-buildonly-randconfig-r003-20210928 (attached as .config)
compiler: alpha-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=640ae42efb828be69a9ee6ac88fb3d5a3e678ddf
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 640ae42efb828be69a9ee6ac88fb3d5a3e678ddf
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha 

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/amdgpu_ras.c:858:6: warning: no previous prototype for 'amdgpu_ras_mca_query_error_status' [-Wmissing-prototypes]
     858 | void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/amdgpu_ras_mca_query_error_status +858 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

   856	
   857	
 > 858	void amdgpu_ras_mca_query_error_status(struct amdgpu_device *adev,
   859					       struct ras_common_if *ras_block,
   860					       struct ras_err_data  *err_data)
   861	{
   862		switch (ras_block->sub_block_index) {
   863		case AMDGPU_RAS_MCA_BLOCK__MP0:
   864			if (adev->mca.mp0.ras_funcs &&
   865			    adev->mca.mp0.ras_funcs->query_ras_error_count)
   866				adev->mca.mp0.ras_funcs->query_ras_error_count(adev, &err_data);
   867			break;
   868		case AMDGPU_RAS_MCA_BLOCK__MP1:
   869			if (adev->mca.mp1.ras_funcs &&
   870			    adev->mca.mp1.ras_funcs->query_ras_error_count)
   871				adev->mca.mp1.ras_funcs->query_ras_error_count(adev, &err_data);
   872			break;
   873		case AMDGPU_RAS_MCA_BLOCK__MPIO:
   874			if (adev->mca.mpio.ras_funcs &&
   875			    adev->mca.mpio.ras_funcs->query_ras_error_count)
   876				adev->mca.mpio.ras_funcs->query_ras_error_count(adev, &err_data);
   877			break;
   878		default:
   879			break;
   880		}
   881	}
   882	

---
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: 35060 bytes --]

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

only message in thread, other threads:[~2021-11-12 22:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 22:11 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: warning: 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;
as well as URLs for NNTP newsgroup(s).