diff options
| author | Baokun Li <[email protected]> | 2021-06-01 08:14:00 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-06-02 02:55:39 +0000 |
| commit | ea2be5c0528654b3b5c72ea6864b79d16bf43937 (patch) | |
| tree | 8e9555628f3c7a235134c45920395de7ad432678 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | drm/amd/display: Remove the redundant initialization of local variable (diff) | |
| download | kernel-ea2be5c0528654b3b5c72ea6864b79d16bf43937.tar.gz kernel-ea2be5c0528654b3b5c72ea6864b79d16bf43937.zip | |
drm/amd/display: fix warning: ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ defined but not used
Fixes gcc '-Wunused-function' warning:
‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ are only used
if 'CONFIG_DRM_AMD_DC_DCN' is defined,
however, it's defined even if 'CONFIG_DRM_AMD_DC_DCN' is not defined.
Thus gcc will report following warning
if 'CONFIG_DRM_AMD_DC_DCN' is not defined:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5572:13: warning:
‘apply_dsc_policy_for_stream’ defined but not used [-Wunused-function]
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5556:13: warning:
‘update_dsc_caps’ defined but not used [-Wunused-function]
Thus move the definition of ‘update_dsc_caps’ and
‘apply_dsc_policy_for_stream’ inside define macro to fix it.
Signed-off-by: Baokun Li <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions
