[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202205061407.MF1Stxst-lkp@intel.com>
Date: Fri, 6 May 2022 14:45:18 +0800
From: kernel test robot <lkp@...el.com>
To: Chengming Gui <Jack.Gui@....com>
Cc: llvm@...ts.linux.dev, 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 function '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: arm64-randconfig-r006-20220505 (https://download.01.org/0day-ci/archive/20220506/202205061407.MF1Stxst-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
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=clang make.cross W=1 O=build_dir ARCH=arm64 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 function 'smu_v13_0_7_check_fw_status' [-Wmissing-prototypes]
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:206:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int smu_v13_0_7_check_fw_status(struct smu_context *smu) {
^
static
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:281:24: warning: unused variable 'adev' [-Wunused-variable]
struct amdgpu_device *adev = smu->adev;
^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:359:24: warning: unused variable 'adev' [-Wunused-variable]
struct amdgpu_device *adev = smu->adev;
^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:464:24: warning: unused variable 'adev' [-Wunused-variable]
struct amdgpu_device *adev = smu->adev;
^
4 warnings generated.
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