Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Wei Yang and committed by
Mike Rapoport (Microsoft)
d68c0817 19c91bd8

+2 -1
+2
tools/include/linux/linkage.h
··· 1 1 #ifndef _TOOLS_INCLUDE_LINUX_LINKAGE_H 2 2 #define _TOOLS_INCLUDE_LINUX_LINKAGE_H 3 3 4 + #include <linux/export.h> 5 + 4 6 #endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */
-1
tools/testing/memblock/linux/init.h
··· 3 3 #define _LINUX_INIT_H 4 4 5 5 #include <linux/compiler.h> 6 - #include <asm/export.h> 7 6 8 7 #define __section(section) __attribute__((__section__(section))) 9 8