Re: [PATCH -next] drm/amd/display: fix warning: ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ defined but not used

2021-06-01 Thread Alex Deucher
Applied. Thanks! On Tue, Jun 1, 2021 at 4:04 AM Baokun Li wrote: > > 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. >

[PATCH -next] drm/amd/display: fix warning: ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ defined but not used

2021-06-01 Thread Baokun Li
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: