From: Andy Shevchenko Date: Mon, 15 Nov 2021 11:53:12 +0000 (+0200) Subject: agp/intel-gtt: Replace kernel.h with the necessary inclusions X-Git-Tag: v5.17-rc1~173^2~19^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce6838afc9244171cd07620bbb82e18695c491e9;p=thirdparty%2Fkernel%2Fstable.git agp/intel-gtt: Replace kernel.h with the necessary inclusions When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Andy Shevchenko Signed-off-by: Jani Nikula Acked-by: Daniel Vetter Reviewed-by: Lucas De Marchi Link: https://patchwork.freedesktop.org/patch/msgid/4d6a976459547407979f4b4c05a52785523e6bd8.1636977089.git.jani.nikula@intel.com --- diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h index abfefaaf897a0..4e5f8e7e25d09 100644 --- a/include/drm/intel-gtt.h +++ b/include/drm/intel-gtt.h @@ -6,7 +6,10 @@ #include #include -#include +#include + +struct pci_dev; +struct sg_table; void intel_gtt_get(u64 *gtt_total, phys_addr_t *mappable_base,