drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/sienna_cichlid_ppt.c:3827:5: warning: no previous prototype for 'sienna_cichlid_stb_get_data_direct'

From: kernel test robot
Date: Wed Jan 12 2022 - 09:07:56 EST


Hi Andrey,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: daadb3bd0e8d3e317e36bc2c1542e86c528665e5
commit: db5b5c679e6cad2bb147337af6c378d278231b45 drm/amd/pm: Add STB support in sienna_cichlid
date: 7 weeks ago
config: arc-randconfig-r043-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122225.jnBYBKaM-lkp@xxxxxxxxx/config)
compiler: arceb-elf-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=db5b5c679e6cad2bb147337af6c378d278231b45
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout db5b5c679e6cad2bb147337af6c378d278231b45
# 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=arc SHELL=/bin/bash drivers/gpu/drm/

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/../pm/swsmu/smu11/sienna_cichlid_ppt.c:3827:5: warning: no previous prototype for 'sienna_cichlid_stb_get_data_direct' [-Wmissing-prototypes]
3827 | int sienna_cichlid_stb_get_data_direct(struct smu_context *smu,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/sienna_cichlid_stb_get_data_direct +3827 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/sienna_cichlid_ppt.c

3826
> 3827 int sienna_cichlid_stb_get_data_direct(struct smu_context *smu,
3828 void *buf,
3829 uint32_t size)
3830 {
3831 uint32_t *p = buf;
3832 struct amdgpu_device *adev = smu->adev;
3833
3834 /* No need to disable interrupts for now as we don't lock it yet from ISR */
3835 spin_lock(&smu->stb_context.lock);
3836
3837 /*
3838 * Read the STB FIFO in units of 32bit since this is the accessor window
3839 * (register width) we have.
3840 */
3841 buf = ((char *) buf) + size;
3842 while ((void *)p < buf)
3843 *p++ = cpu_to_le32(RREG32_PCIE(MP1_Public | smnMP1_PMI_3));
3844
3845 spin_unlock(&smu->stb_context.lock);
3846
3847 return 0;
3848 }
3849

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