mirror of https://gitee.com/openkylin/linux.git
356aee305a
We get a few warnings when building kernel with W=1: drivers/gpu/drm/amd/amdgpu/atombios_crtc.c:38:6: warning: no previous prototype for 'amdgpu_atombios_crtc_overscan_setup' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/dce_v8_0.c:661:6: warning: no previous prototype for 'dce_v8_0_disable_dce' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:40:5: warning: no previous prototype for 'amdgpu_gfx_scratch_get' [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:62:6: warning: no previous prototype for 'amdgpu_gfx_scratch_free' [-Wmissing-prototypes] .... In fact, these functions are declared in drivers/gpu/drm/amd/amdgpu/atombios_crtc.h drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h drivers/gpu/drm/amd/amdgpu/dce_v8_0.h drivers/gpu/drm/amd/amdgpu/dce_v10_0.h drivers/gpu/drm/amd/amdgpu/dce_v11_0.h drivers/gpu/drm/amd/powerplay/inc/pp_acpi.h. So this patch adds missing header dependencies. By the way, this patch changes declaration of amdgpu_gfx_parse_disable_cu() to subject to its implement, and clean three function declarations in pp_acpi.h up. Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
---|---|---|
.. | ||
amd_powerplay.h | ||
cz_ppsmc.h | ||
eventmanager.h | ||
eventmgr.h | ||
fiji_ppsmc.h | ||
fiji_pwrvirus.h | ||
hardwaremanager.h | ||
hwmgr.h | ||
polaris10_ppsmc.h | ||
polaris10_pwrvirus.h | ||
power_state.h | ||
pp_acpi.h | ||
pp_asicblocks.h | ||
pp_debug.h | ||
pp_endian.h | ||
pp_feature.h | ||
pp_instance.h | ||
pp_power_source.h | ||
ppinterrupt.h | ||
smu7.h | ||
smu7_common.h | ||
smu7_discrete.h | ||
smu7_fusion.h | ||
smu7_ppsmc.h | ||
smu8.h | ||
smu8_fusion.h | ||
smu71.h | ||
smu71_discrete.h | ||
smu72.h | ||
smu72_discrete.h | ||
smu73.h | ||
smu73_discrete.h | ||
smu74.h | ||
smu74_discrete.h | ||
smu_ucode_xfer_cz.h | ||
smu_ucode_xfer_vi.h | ||
smumgr.h | ||
tonga_ppsmc.h |