Took Andy's patch [1] and expanded on it a bit. BR, Jani. [1] https://patchwork.freedesktop.org/patch/msgid/20211110102857.59604-1-andriy.shevchenko@xxxxxxxxxxxxxxx Cc: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Andy Shevchenko (1): agp/intel-gtt: Replace kernel.h with the necessary inclusions Jani Nikula (2): drm/i915: include intel-gtt.h only where needed agp/intel-gtt: reduce intel-gtt dependencies more drivers/char/agp/intel-gtt.c | 1 + drivers/gpu/drm/i915/gt/intel_ggtt.c | 2 ++ drivers/gpu/drm/i915/gt/intel_gt.c | 2 ++ drivers/gpu/drm/i915/i915_drv.h | 1 - include/drm/intel-gtt.h | 8 +++++--- 5 files changed, 10 insertions(+), 4 deletions(-) -- 2.30.2