[radeon-alex:amd-staging-drm-next 192/206] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:434:56: sparse: mixing different enum types
kbuild test robot
lkp at intel.com
Tue Jun 26 07:04:33 UTC 2018
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 60f8d52ac6e3b4d043917e5c43bb798f8679115a
commit: fb65df857c664b28322018501f0609d528b6ac5a [192/206] drm/amd/display: Moving powerplay functions to a separate class
reproduce:
# apt-get install sparse
git checkout fb65df857c664b28322018501f0609d528b6ac5a
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:434:56: sparse: mixing different enum types
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:434:56: int enum PP_DAL_POWERLEVEL versus
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:434:56: int enum dm_pp_clocks_state
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:442:6: sparse: symbol 'pp_rv_set_display_requirement' was not declared. Should it be static?
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:477:66: sparse: mixing different enum types
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:477:66: int enum wm_set_id versus
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:477:66: int enum pp_wm_set_id
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:493:66: sparse: mixing different enum types
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:493:66: int enum wm_set_id versus
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:493:66: int enum pp_wm_set_id
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:456:6: sparse: symbol 'pp_rv_set_wm_ranges' was not declared. Should it be static?
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:508:6: sparse: symbol 'pp_rv_set_pme_wa_enable' was not declared. Should it be static?
vim +434 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c
418
419 bool dm_pp_get_static_clocks(
420 const struct dc_context *ctx,
421 struct dm_pp_static_clock_info *static_clk_info)
422 {
423 struct amdgpu_device *adev = ctx->driver_context;
424 struct amd_pp_clock_info pp_clk_info = {0};
425 int ret = 0;
426
427 if (adev->powerplay.pp_funcs->get_current_clocks)
428 ret = adev->powerplay.pp_funcs->get_current_clocks(
429 adev->powerplay.pp_handle,
430 &pp_clk_info);
431 if (ret)
432 return false;
433
> 434 static_clk_info->max_clocks_state = pp_clk_info.max_clocks_state;
435 /* translate 10kHz to kHz */
436 static_clk_info->max_mclk_khz = pp_clk_info.max_memory_clock * 10;
437 static_clk_info->max_sclk_khz = pp_clk_info.max_engine_clock * 10;
438
439 return true;
440 }
441
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
More information about the dri-devel
mailing list