From: Thomas Zimmermann Date: Mon, 10 May 2021 14:52:18 +0000 (+0200) Subject: drm: Include iff CONFIG_AGP is set X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eb185a3212b5edca30da0ab4ec21d69a012bcb69;p=linux.git drm: Include iff CONFIG_AGP is set 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 --- diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c index 07c10443770ed..a4ad6fd13abcf 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