From: Wei Yang Date: Fri, 12 Jul 2024 03:51:37 +0000 (+0000) Subject: memblock tests: include export.h in linkage.h as kernel dose X-Git-Tag: v6.12-rc1~50^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d68c08173b70952cd74bb45075b843f4a637a43b;p=thirdparty%2Flinux.git memblock tests: include export.h in linkage.h as kernel dose 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 CC: Mike Rapoport Link: https://lore.kernel.org/r/20240712035138.24674-2-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (Microsoft) --- diff --git a/tools/include/linux/linkage.h b/tools/include/linux/linkage.h index bc763d5002626..20dee24d7e1b1 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 + #endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */ diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h index 4aeddce53310a..bd74abc5cba60 100644 --- a/tools/testing/memblock/linux/init.h +++ b/tools/testing/memblock/linux/init.h @@ -3,7 +3,6 @@ #define _LINUX_INIT_H #include -#include #define __section(section) __attribute__((__section__(section)))