[radeon-alex:drm-next-4.8-wip 63/141] drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c:228:24: warning: unused variable 'adev'
kbuild test robot
fengguang.wu at intel.com
Thu Jun 2 15:42:11 UTC 2016
tree: git://people.freedesktop.org/~agd5f/linux.git drm-next-4.8-wip
head: 1e023401d28bd6dda57eb6f7e9f73a4ccfb9364e
commit: eec0af435893bb27071eae302c2748e505a22905 [63/141] drm/amdgpu: impl late_fini for amdgpu_pp_ip
config: x86_64-randconfig-x006-06021601 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout eec0af435893bb27071eae302c2748e505a22905
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c: In function 'amdgpu_pp_late_fini':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c:228:24: warning: unused variable 'adev' [-Wunused-variable]
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
^~~~
vim +/adev +228 drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
212 {
213 int ret = 0;
214 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
215
216 if (adev->powerplay.ip_funcs->hw_fini)
217 ret = adev->powerplay.ip_funcs->hw_fini(
218 adev->powerplay.pp_handle);
219
220 if (adev->pp_enabled && adev->firmware.smu_load)
221 amdgpu_ucode_fini_bo(adev);
222
223 return ret;
224 }
225
226 static void amdgpu_pp_late_fini(void *handle)
227 {
> 228 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
229
230 #ifdef CONFIG_DRM_AMD_POWERPLAY
231 if (adev->pp_enabled) {
232 amdgpu_pm_sysfs_fini(adev);
233 amd_powerplay_fini(adev->powerplay.pp_handle);
234 }
235
236 if (adev->powerplay.ip_funcs->late_fini)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 25118 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160602/e72f7894/attachment-0001.obj>
More information about the dri-devel
mailing list