]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memblock tests: include export.h in linkage.h as kernel dose
authorWei Yang <richard.weiyang@gmail.com>
Fri, 12 Jul 2024 03:51:37 +0000 (03:51 +0000)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 6 Aug 2024 05:17:49 +0000 (08:17 +0300)
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>
Link: https://lore.kernel.org/r/20240712035138.24674-2-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
tools/include/linux/linkage.h
tools/testing/memblock/linux/init.h

index bc763d500262638e69162784eab15831a96e0f75..20dee24d7e1b13992e8cade83939c80454b7e2ba 100644 (file)
@@ -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 */
index 4aeddce53310aab82ad7f53cc473cc46b31cfa8a..bd74abc5cba6050207116c5b2443a97c1b41ad03 100644 (file)
@@ -3,7 +3,6 @@
 #define _LINUX_INIT_H
 
 #include <linux/compiler.h>
-#include <asm/export.h>
 
 #define __section(section)              __attribute__((__section__(section)))