drm/panthor: Fix missing declaration for panthor_transparent_hugepage
Subsystems (3)
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.
Signed-off-by gyeyoung <[email protected]>
--- 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
@@ -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
@@ -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
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.
Signed-off-by gyeyoung <[email protected]>
Reviewed-by Steven Price <[email protected]>
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@@ -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@@ -4,6 +4,8 @@#ifndef __PANTHOR_DRV_H__#define __PANTHOR_DRV_H__ +#include <linux/types.h> +extern bool panthor_transparent_hugepage;#endif