diff mbox series

[2/3] memblock tests: include export.h in linkage.h as kernel dose

Message ID 20240712035138.24674-2-richard.weiyang@gmail.com (mailing list archive)
State New
Headers show
Series [1/3] memblock tests: include memory_hotplug.h in mmzone.h as kernel dose | expand

Commit Message

Wei Yang July 12, 2024, 3:51 a.m. UTC
In kernel code, linkage.h includes export.h. Let's sync with kernel.

This is a preparation for move init.h in common include directory.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Mike Rapoport <rppt@kernel.org>
---
 tools/include/linux/linkage.h       | 2 ++
 tools/testing/memblock/linux/init.h | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/include/linux/linkage.h b/tools/include/linux/linkage.h
index bc763d500262..20dee24d7e1b 100644
--- a/tools/include/linux/linkage.h
+++ b/tools/include/linux/linkage.h
@@ -1,4 +1,6 @@ 
 #ifndef _TOOLS_INCLUDE_LINUX_LINKAGE_H
 #define _TOOLS_INCLUDE_LINUX_LINKAGE_H
 
+#include <linux/export.h>
+
 #endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */
diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h
index 4aeddce53310..bd74abc5cba6 100644
--- a/tools/testing/memblock/linux/init.h
+++ b/tools/testing/memblock/linux/init.h
@@ -3,7 +3,6 @@ 
 #define _LINUX_INIT_H
 
 #include <linux/compiler.h>
-#include <asm/export.h>
 
 #define __section(section)              __attribute__((__section__(section)))