drm/rockchip: Add missing vmalloc header
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 31 Dec 2019 08:12:36 +0000 (09:12 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 13 Jan 2020 13:54:35 +0000 (14:54 +0100)
The Rockship DRM GEM code uses vmap()/vunmap() so vmalloc header must be
included to avoid warnings like (on IA64, compile tested):

    drivers/gpu/drm/rockchip/rockchip_drm_gem.c: In function ‘rockchip_gem_alloc_iommu’:
    drivers/gpu/drm/rockchip/rockchip_drm_gem.c:134:20: error:
        implicit declaration of function ‘vmap’ [-Werror=implicit-function-declaration]

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1577779956-7612-1-git-send-email-krzk@kernel.org
drivers/gpu/drm/rockchip/rockchip_drm_gem.c

index 7582d0e6a60ae40abad2aa490485f93103271f1f..0d1884684dcbf7fa3d16693acaa4e897a7ff5390 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <linux/dma-buf.h>
 #include <linux/iommu.h>
+#include <linux/vmalloc.h>
 
 #include <drm/drm.h>
 #include <drm/drm_gem.h>