Skip to contentSkip to conversation

drm/msm: fix build error

PATCH In review Yanteng Si 1 participant 4 messages Oct 14, 2021 – Oct 21, 2021

Subsystems (3)
lore
Share & tools
lore

Yanteng Si

author
#0 lore raw

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
author
#1 lore raw

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
index 40a9863f5951..198caa9c22e4 100644
@@ -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
author
#2 lore raw

PATCH 2/2 drm/msm: Fix missing include files in msm_gem_shrinker.c

In reply to Yanteng Si

Include 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
index 0f1b29ee04a9..4a1420b05e97 100644
@@ -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
author
#3 lore raw
In reply to Yanteng Si
Quoted 10 lines · Yanteng Si <[email protected]> 于2021年10月14日周四 下午4:51写道:

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

ping?

Thanks,

Yanteng