• Baoyou Xie's avatar
    drm/amdgpu: add missing header dependencies · 9ca91fdd
    Baoyou Xie authored
    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: default avatarChristian König <christian.koenig@amd.com>
    Signed-off-by: default avatarBaoyou Xie <baoyou.xie@linaro.org>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    9ca91fdd
atombios_i2c.c 4.81 KB