mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [agd5f:drm-next 523/573] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:206:5: warning: no previous prototype for 'smu_v13_0_7_check_fw_status'
@ 2022-05-06  1:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-06  1:54 UTC (permalink / raw)
  To: Chengming Gui; +Cc: kbuild-all, linux-kernel, Alex Deucher, Evan Quan

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head:   e7b25ac8f27f561894f8f65caec0dfafed3ddbb5
commit: 113cc31dde66e3153f7290141b6c008dce8ab2bf [523/573] drm/amd/pm: add SMU_13_0_7 ppt_funcs for SMU_13_0_7
config: alpha-randconfig-r034-20220505 (https://download.01.org/0day-ci/archive/20220506/202205060948.mXtoebUU-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.3.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 113cc31dde66e3153f7290141b6c008dce8ab2bf
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/gpu/drm/

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/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:206:5: warning: no previous prototype for 'smu_v13_0_7_check_fw_status' [-Wmissing-prototypes]
     206 | int smu_v13_0_7_check_fw_status(struct smu_context *smu) {
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c: In function 'smu_v13_0_7_tables_init':
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:281:31: warning: unused variable 'adev' [-Wunused-variable]
     281 |         struct amdgpu_device *adev = smu->adev;
         |                               ^~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c: In function 'smu_v13_0_7_set_default_dpm_table':
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:359:31: warning: unused variable 'adev' [-Wunused-variable]
     359 |         struct amdgpu_device *adev = smu->adev;
         |                               ^~~~
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c: In function 'smu_v13_0_7_set_ppt_funcs':
   drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:464:31: warning: unused variable 'adev' [-Wunused-variable]
     464 |         struct amdgpu_device *adev = smu->adev;
         |                               ^~~~


vim +/smu_v13_0_7_check_fw_status +206 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c

   205	
 > 206	int smu_v13_0_7_check_fw_status(struct smu_context *smu) {
   207		struct amdgpu_device *adev = smu->adev;
   208		uint32_t mp1_fw_flags;
   209	
   210		mp1_fw_flags = RREG32_PCIE(MP1_Public |
   211					   (smnMP1_FIRMWARE_FLAGS_SMU_13_0_7 & 0xffffffff));
   212	
   213		if ((mp1_fw_flags & MP1_FIRMWARE_FLAGS__INTERRUPTS_ENABLED_MASK) >>
   214				MP1_FIRMWARE_FLAGS__INTERRUPTS_ENABLED__SHIFT)
   215			return 0;
   216	
   217		return -EIO;
   218	}
   219	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-05-06  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06  1:54 [agd5f:drm-next 523/573] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:206:5: warning: no previous prototype for 'smu_v13_0_7_check_fw_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

all inboxes | Powered by JetHome®