drm/msm: fix build error
cover drm/msm: fix build error
Include linux/vmalloc.h to fix below errors:
error: implicit declaration of function 'vmap';
error: implicit declaration of function 'register_vmap_purge_notifier'
error: implicit declaration of function 'unregister_vmap_purge_notifier'
Yanteng Si (2):
drm/msm: Fix missing include files in msm_gem.c drm/msm: Fix missing include files in msm_gem_shrinker.c
drivers/gpu/drm/msm/msm_gem.c | 1 + drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 ++ 2 files changed, 3 insertions(+)
Signature · 1 line
2.27.0
PATCH 1/2 drm/msm: Fix missing include files in msm_gem.c
Include linux/vmalloc.h to fix below errors:
error: implicit declaration of function 'vmap'
--- drivers/gpu/drm/msm/msm_gem.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_gem.c +1 -0
@@ -5,6 +5,7 @@*/ #include <linux/dma-map-ops.h> +#include <linux/vmalloc.h> #include <linux/spinlock.h> #include <linux/shmem_fs.h> #include <linux/dma-buf.h>
Signature · 1 line
2.27.0
PATCH 2/2 drm/msm: Fix missing include files in msm_gem_shrinker.c
In reply to Yanteng SiInclude linux/vmalloc.h to fix below errors:
error: implicit declaration of function 'register_vmap_purge_notifier'
error: implicit declaration of function 'unregister_vmap_purge_notifier'
--- drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/msm/msm_gem_shrinker.c +2 -0
@@ -4,6 +4,8 @@* Author: Rob Clark <[email protected]> */ +#include <linux/vmalloc.h> +#include "msm_drv.h" #include "msm_gem.h" #include "msm_gpu.h"
Signature · 1 line
2.27.0
Quoted 10 lines · Yanteng Si <[email protected]> 于2021年10月14日周四 下午4:51写道:
Include
linux/vmalloc.hto fix below errors:error: implicit declaration of function 'vmap';
error: implicit declaration of function 'register_vmap_purge_notifier'
error: implicit declaration of function 'unregister_vmap_purge_notifier'Yanteng Si (2):
drm/msm: Fix missing include files inmsm_gem.cdrm/msm: Fix missing include files inmsm_gem_shrinker.c
ping?
Thanks,
Yanteng