From eb185a3212b5edca30da0ab4ec21d69a012bcb69 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Mon, 10 May 2021 16:52:18 +0200 Subject: drm: Include iff CONFIG_AGP is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Platforms without AGP don't provide the AGP header. Only include it if CONFIG_AGP is set. Signed-off-by: Thomas Zimmermann Reviewed-by: Alex Deucher Fixes: 04dfe19a5ed6 ("drm: Mark AGP implementation and ioctls as legacy") Cc: Thomas Zimmermann Cc: Alex Deucher Cc: Christian König Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: David Airlie Cc: Daniel Vetter Cc: "Christian König" Cc: Christophe JAILLET Cc: Jason Yan Cc: Lee Jones Cc: Sam Ravnborg Cc: dri-devel@lists.freedesktop.org Link: https://patchwork.freedesktop.org/patch/msgid/20210510145218.10322-1-tzimmermann@suse.de --- drivers/gpu/drm/drm_agpsupport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c index 07c10443770e..a4ad6fd13abc 100644 --- a/drivers/gpu/drm/drm_agpsupport.c +++ b/drivers/gpu/drm/drm_agpsupport.c @@ -35,7 +35,9 @@ #include #include +#if IS_ENABLED(CONFIG_AGP) #include +#endif #include #include -- cgit v1.2.3