[PATCH] drm/amdgpu/display: include slab.h in dcn21_resource.c

Harry Wentland hwentlan at amd.com
Mon Sep 23 21:14:51 UTC 2019


On 2019-09-23 4:58 p.m., Alex Deucher wrote:
> It's apparently needed in some configurations.

Curious which config fails and what compiler errors we get... Sounds
like our includes are messed up somewhere.

Harry

> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>  drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
> index 3ca5139f1273..de182185fe1f 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
> @@ -23,6 +23,8 @@
>   *
>   */
>  
> +#include <linux/slab.h>
> +
>  #include "dm_services.h"
>  #include "dc.h"
>  
> 


More information about the amd-gfx mailing list