]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panthor: Fix missing declaration for panthor_transparent_hugepage
authorgyeyoung <gye976@gmail.com>
Sun, 3 May 2026 14:42:34 +0000 (23:42 +0900)
committerSteven Price <steven.price@arm.com>
Thu, 7 May 2026 08:06:10 +0000 (09:06 +0100)
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.

Signed-off-by: gyeyoung <gye976@gmail.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20260503144234.2150138-1-gye976@gmail.com
drivers/gpu/drm/panthor/panthor_drv.c
drivers/gpu/drm/panthor/panthor_drv.h

index 66996c9147c2c4e561f9525465b55801bc2763c3..e8dc4096c1d25d21495836e86ef45bb5a6f94f3b 100644 (file)
@@ -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"
index 1bc7ddbad23ed4d7a2eb2fff9c29b762de0934fc..b81f21ed5398156e60301236586466b3cb400334 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef __PANTHOR_DRV_H__
 #define __PANTHOR_DRV_H__
 
+#include <linux/types.h>
+
 extern bool panthor_transparent_hugepage;
 
 #endif