[PATCH 23/24] drm/amd/display: Fix POWERPC_64 compilation

Aurabindo Pillai aurabindo.pillai at amd.com
Thu May 16 19:33:29 UTC 2024


Reviewed-by: Aurabindo Pillai <aurabindo.pillai at amd.com>

On 5/16/24 3:26 PM, Roman.Li at amd.com wrote:
> From: Roman Li <Roman.Li at amd.com>
> 
> [Why]
> Compilation errors while compiling without CONFIG_DRM_AMD_DC_FP:
> "undefined reference to `dc_bandwidth_in_kbps_from_timing'"
> 
> [How]
> Fix Makefile to move dsc files out of DC_FP guard.
> 
> Fixes: 50253f5d9ff4 ("drm/amd/display: Add misc DC changes for DCN401")
> Signed-off-by: Roman Li <Roman.Li at amd.com>
> ---
>   drivers/gpu/drm/amd/display/dc/dsc/Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dsc/Makefile b/drivers/gpu/drm/amd/display/dc/dsc/Makefile
> index 66ea5f104019..94883c4e4c61 100644
> --- a/drivers/gpu/drm/amd/display/dc/dsc/Makefile
> +++ b/drivers/gpu/drm/amd/display/dc/dsc/Makefile
> @@ -29,6 +29,7 @@ DSC_DCN401 += dcn401_dsc.o
>   
>   AMD_DISPLAY_FILES += $(addprefix $(AMDDALPATH)/dc/dsc/dcn401/,$(DSC_DCN401))
>   
> +endif
>   
>   DSC = dc_dsc.o rc_calc.o rc_calc_dpi.o
>   
> @@ -36,4 +37,3 @@ AMD_DAL_DSC = $(addprefix $(AMDDALPATH)/dc/dsc/,$(DSC))
>   
>   AMD_DISPLAY_FILES += $(AMD_DAL_DSC)
>   
> -endif

-- 
--

Thanks & Regards,
Aurabindo Pillai


More information about the amd-gfx mailing list