Skip to content

Commit e08ec26

Browse files
hcahcaVasily Gorbik
authored andcommitted
tools: Add additional SYM_*() stubs to linkage.h
Similar to commit f8d92fc ("selftests: vDSO: fix include order in build of test_vdso_chacha") add SYM_DATA_START, SYM_DATA_START_LOCAL, and SYM_DATA_END stubs to tools/include/linux/linkage.h so that the proper macros can be used within the kernel's vdso code as well as in the vdso_test_chacha selftest. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Reviewed-by: Jens Remus <jremus@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent d361390 commit e08ec26

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/include/linux/linkage.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#define _TOOLS_INCLUDE_LINUX_LINKAGE_H
33

44
#define SYM_FUNC_START(x) .globl x; x:
5-
65
#define SYM_FUNC_END(x)
6+
#define SYM_DATA_START(x) .globl x; x:
7+
#define SYM_DATA_START_LOCAL(x) x:
8+
#define SYM_DATA_END(x)
79

810
#endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */

0 commit comments

Comments
 (0)