drm: Include <linux/mem_encrypt.h> in drm_cache.c
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 14 Jan 2021 08:05:35 +0000 (09:05 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 14 Jan 2021 08:42:31 +0000 (09:42 +0100)
commit681045819636792158a93c556cab283311b17cc2
tree082331be1ba8f53533931478481b68231f9514c2
parent42dceab0502751ecb9b41ca10eac2b474b824554
drm: Include <linux/mem_encrypt.h> in drm_cache.c

The function drm_need_swiotbl() needs mem_encrypt_active() from
<linux/mem_encrypt.h>. The include got lost when refactoring the
code recently.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 3abc66706385 ("drm: Implement drm_need_swiotlb() in drm_cache.c")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Christian König <christian.koenig@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210114080535.17132-1-tzimmermann@suse.de
drivers/gpu/drm/drm_cache.c