[agd5f:drm-next 16/45] drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c:27:6: warning: no previous prototype for 'amdgpu_mmhub_ras_fini'

From: kernel test robot
Date: Thu Mar 03 2022 - 07:23:57 EST


tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: efa8692773c96d85dd24fdb76e49ff9056f963a1
commit: 9dad47c50f9bf19153c092a73eb4721344f4a78d [16/45] drm/amdgpu: Remove redundant calls of amdgpu_ras_block_late_fini in mmhub ras block
config: ia64-randconfig-r012-20220303 (https://download.01.org/0day-ci/archive/20220303/202203032029.NklrWWSk-lkp@xxxxxxxxx/config)
compiler: ia64-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
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 9dad47c50f9bf19153c092a73eb4721344f4a78d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c:27:6: warning: no previous prototype for 'amdgpu_mmhub_ras_fini' [-Wmissing-prototypes]
27 | void amdgpu_mmhub_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block)
| ^~~~~~~~~~~~~~~~~~~~~


vim +/amdgpu_mmhub_ras_fini +27 drivers/gpu/drm/amd/amdgpu/amdgpu_mmhub.c

47930de4aa70681 Hawking Zhang 2019-09-03 26
01d468d9a420152 yipechai 2022-02-17 @27 void amdgpu_mmhub_ras_fini(struct amdgpu_device *adev, struct ras_common_if *ras_block)
196041205cd4838 Tao Zhou 2019-09-18 28 {
9dad47c50f9bf19 yipechai 2022-02-14 29

:::::: The code at line 27 was first introduced by commit
:::::: 01d468d9a420152e4a1270992e69a37ea0c98e04 drm/amdgpu: Modify .ras_fini function pointer parameter

:::::: TO: yipechai <YiPeng.Chai@xxxxxxx>
:::::: CC: Alex Deucher <alexander.deucher@xxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx