diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-03 02:01:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-14 15:10:37 -0400 |
commit | 9ca91fdd13ad877f4a303f6fb971aecbea4b67ae (patch) | |
tree | 7ea78b63d491062cd4b70f43371bdb4de1c32295 | |
parent | efdf7a93195a712baff7aa077ae5e4542a9af2f9 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/atombios_i2c.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cz_smc.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c index d15314957732..8e67c1210d7c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "amdgpu.h" | 25 | #include "amdgpu.h" |
26 | #include "atom.h" | 26 | #include "atom.h" |
27 | #include "atombios_encoders.h" | 27 | #include "atombios_encoders.h" |
28 | #include "amdgpu_pll.h" | ||
28 | #include <asm/div64.h> | 29 | #include <asm/div64.h> |
29 | #include <linux/gcd.h> | 30 | #include <linux/gcd.h> |
30 | 31 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c b/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c index bc56c8a181e6..b374653bd6cf 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_i2c.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "amdgpu.h" | 27 | #include "amdgpu.h" |
28 | #include "atom.h" | 28 | #include "atom.h" |
29 | #include "amdgpu_atombios.h" | 29 | #include "amdgpu_atombios.h" |
30 | #include "atombios_i2c.h" | ||
30 | 31 | ||
31 | #define TARGET_HW_I2C_CLOCK 50 | 32 | #define TARGET_HW_I2C_CLOCK 50 |
32 | 33 | ||
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_smc.c b/drivers/gpu/drm/amd/amdgpu/cz_smc.c index ac7fee7b7eca..69ac373c4d0f 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_smc.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_smc.c | |||
@@ -29,6 +29,8 @@ | |||
29 | #include "cz_smumgr.h" | 29 | #include "cz_smumgr.h" |
30 | #include "smu_ucode_xfer_cz.h" | 30 | #include "smu_ucode_xfer_cz.h" |
31 | #include "amdgpu_ucode.h" | 31 | #include "amdgpu_ucode.h" |
32 | #include "cz_dpm.h" | ||
33 | #include "vi_dpm.h" | ||
32 | 34 | ||
33 | #include "smu/smu_8_0_d.h" | 35 | #include "smu/smu_8_0_d.h" |
34 | #include "smu/smu_8_0_sh_mask.h" | 36 | #include "smu/smu_8_0_sh_mask.h" |