]> Git Repo - linux.git/commitdiff
drm: Include <asm/agp.h> iff CONFIG_AGP is set
authorThomas Zimmermann <[email protected]>
Mon, 10 May 2021 14:52:18 +0000 (16:52 +0200)
committerThomas Zimmermann <[email protected]>
Tue, 11 May 2021 12:13:33 +0000 (14:13 +0200)
Platforms without AGP don't provide the AGP header. Only include it
if CONFIG_AGP is set.

Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Fixes: 04dfe19a5ed6 ("drm: Mark AGP implementation and ioctls as legacy")
Cc: Thomas Zimmermann <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Christian König <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: Christophe JAILLET <[email protected]>
Cc: Jason Yan <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: [email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_agpsupport.c

index 07c10443770ed5f7546d281c105fea081432a4fb..a4ad6fd13abcf63c88e91900273acc88f861262e 100644 (file)
@@ -35,7 +35,9 @@
 #include <linux/pci.h>
 #include <linux/slab.h>
 
+#if IS_ENABLED(CONFIG_AGP)
 #include <asm/agp.h>
+#endif
 
 #include <drm/drm_device.h>
 #include <drm/drm_drv.h>
This page took 0.051091 seconds and 4 git commands to generate.