lkml.org 
[lkml]   [2021]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:858:6: warning: 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: 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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-12 23:12    [W:0.035 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site