Skip to contentSkip to conversation

drm/panthor: Fix missing declaration for panthor_transparent_hugepage

PATCH In review gyeyoung 2 participants 2 messages May 3 – May 7

Subsystems (3)
lore
Share & tools
lore

gyeyoung

author
#0 lore raw

PATCH 1/1 drm/panthor: Fix missing declaration for panthor_transparent_hugepage

sparse reports:
drivers/gpu/drm/panthor/panthor_drv.c:1805:6: warning: symbol 'panthor_transparent_hugepage' was not declared. Should it be static?

Make it clean.

---
 drivers/gpu/drm/panthor/panthor_drv.c | 1 +
 drivers/gpu/drm/panthor/panthor_drv.h | 2 ++
 2 files changed, 3 insertions(+)
drivers/gpu/drm/panthor/panthor_drv.c +1 -0
index 66996c9147c2..e8dc4096c1d2 100644
@@ -31,6 +31,7 @@
 
 #include "panthor_devfreq.h"
 #include "panthor_device.h"
+#include "panthor_drv.h"
 #include "panthor_fw.h"
 #include "panthor_gem.h"
 #include "panthor_gpu.h"
drivers/gpu/drm/panthor/panthor_drv.h +2 -0
index 1bc7ddbad23e..b81f21ed5398 100644
@@ -4,6 +4,8 @@
 #ifndef __PANTHOR_DRV_H__
 #define __PANTHOR_DRV_H__
 
+#include <linux/types.h>
+
 extern bool panthor_transparent_hugepage;
 
 #endif
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · gyeyoung

sparse reports:
drivers/gpu/drm/panthor/panthor_drv.c:1805:6: warning: symbol 'panthor_transparent_hugepage' was not declared. Should it be static?

Make it clean.

Thanks, I'll push this to drm-misc-next.

Steve

Quoted 30 lines
---
 drivers/gpu/drm/panthor/panthor_drv.c | 1 +
 drivers/gpu/drm/panthor/panthor_drv.h | 2 ++
 2 files changed, 3 insertions(+)
drivers/gpu/drm/panthor/panthor_drv.c +1 -0
index 66996c9147c2..e8dc4096c1d2 100644
@@ -31,6 +31,7 @@
 
 #include "panthor_devfreq.h"
 #include "panthor_device.h"
+#include "panthor_drv.h"
 #include "panthor_fw.h"
 #include "panthor_gem.h"
 #include "panthor_gpu.h"
drivers/gpu/drm/panthor/panthor_drv.h +2 -0
index 1bc7ddbad23e..b81f21ed5398 100644
@@ -4,6 +4,8 @@
 #ifndef __PANTHOR_DRV_H__
 #define __PANTHOR_DRV_H__
 
+#include <linux/types.h>
+
 extern bool panthor_transparent_hugepage;
 
 #endif