Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: add missing header dependencies

We get a few warnings when building kernel with W=1:
drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c:113:6: warning: no previous prototype for 'amdgpu_pll_compute' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/cz_smc.c:38:10: warning: no previous prototype for 'cz_get_argument' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/cz_smc.c:302:5: warning: no previous prototype for 'cz_smu_start' [-Wmissing-prototypes]
....

In fact, these functions are declared in
drivers/gpu/drm/amd/amdgpu/atombios_i2c.h
drivers/gpu/drm/amd/amdgpu/amdgpu_pll.h
drivers/gpu/drm/amd/amdgpu/cz_dpm.h
drivers/gpu/drm/amd/amdgpu/vi_dpm.h.
So this patch adds missing header dependencies.

Reviewed-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>

authored by

Baoyou Xie and committed by
Alex Deucher
9ca91fdd efdf7a93

+4
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c
··· 25 25 #include "amdgpu.h" 26 26 #include "atom.h" 27 27 #include "atombios_encoders.h" 28 + #include "amdgpu_pll.h" 28 29 #include <asm/div64.h> 29 30 #include <linux/gcd.h> 30 31
+1
drivers/gpu/drm/amd/amdgpu/atombios_i2c.c
··· 27 27 #include "amdgpu.h" 28 28 #include "atom.h" 29 29 #include "amdgpu_atombios.h" 30 + #include "atombios_i2c.h" 30 31 31 32 #define TARGET_HW_I2C_CLOCK 50 32 33
+2
drivers/gpu/drm/amd/amdgpu/cz_smc.c
··· 29 29 #include "cz_smumgr.h" 30 30 #include "smu_ucode_xfer_cz.h" 31 31 #include "amdgpu_ucode.h" 32 + #include "cz_dpm.h" 33 + #include "vi_dpm.h" 32 34 33 35 #include "smu/smu_8_0_d.h" 34 36 #include "smu/smu_8_0_sh_mask.h"