]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix header file inclusion for might_alloc()
authorAndi Shyti <andi.shyti@linux.intel.com>
Mon, 24 Jan 2022 09:44:18 +0000 (11:44 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 24 Jan 2022 11:02:32 +0000 (12:02 +0100)
commit4ee618e2308e4aa31397aa2b9f1b73c82862f289
tree4c4018b10ef7a075921d6af71a928bd996d08ca7
parentc5c00b6c03426462d71bf94991d18f64b3a83c49
drm/i915: fix header file inclusion for might_alloc()

Replace "linux/slab.h" with "linux/sched/mm.h" header inclusion
as the first is not required, while the second, if not included,
prodouces the following error:

drivers/gpu/drm/i915/i915_vma_resource.c: In function ‘i915_vma_resource_bind_dep_await’:
drivers/gpu/drm/i915/i915_vma_resource.c:381:9: error: implicit declaration of function ‘might_alloc’; did you mean ‘might_lock’? [-Werror=implicit-function-declaration]
  381 |         might_alloc(gfp);
      |         ^~~~~~~~~~~
      |         might_lock

Fixes: 3d038df56a04 ("drm/i915: Use vma resources for async unbinding")
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220124094418.2661-1-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/i915_vma_resource.c