[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205060948.mXtoebUU-lkp@intel.com>
Date: Fri, 6 May 2022 09:54:40 +0800
From: kernel test robot <lkp@...el.com>
To: Chengming Gui <Jack.Gui@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>,
Evan Quan <evan.quan@....com>
Subject: [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'
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@...el.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
Powered by blists - more mailing lists