[PATCH 16/26] mm/mm_init: Annotate static information into meminspect

Eugen Hristev
2025-11-19T15:45:48Z

Annotate vital static information into inspection table:
- high_memory

Information on these variables is stored into dedicated inspection section.

Signed-off-by: Eugen Hristev <eugen.hristev@linaro.org>
---
mm/mm_init.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/mm/mm_init.c b/mm/mm_init.c
index 3db2dea7db4c..c31062a3ff47 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -32,6 +32,7 @@
#include <linux/vmstat.h>
#include <linux/kexec_handover.h>
#include <linux/hugetlb.h>
+#include <linux/meminspect.h>
#include "internal.h"
#include "slab.h"
#include "shuffle.h"
@@ -52,6 +53,7 @@ EXPORT_SYMBOL(mem_map);
*/
void *high_memory;
EXPORT_SYMBOL(high_memory);
+MEMINSPECT_SIMPLE_ENTRY(high_memory);

#ifdef CONFIG_DEBUG_MEMORY_INIT
int __meminitdata mminit_loglevel;
--
2.43.0