diff options
| author | Heiko Carstens <[email protected]> | 2024-09-19 12:40:08 +0000 |
|---|---|---|
| committer | Vasily Gorbik <[email protected]> | 2024-09-23 15:57:04 +0000 |
| commit | e08ec26928554c36e34e089f663dc9114d77b68c (patch) | |
| tree | c3443d60b3248a62d9a1b8d4c0465004edd677f6 | |
| parent | s390/vdso: Use macros for annotation of asm functions (diff) | |
| download | kernel-e08ec26928554c36e34e089f663dc9114d77b68c.tar.gz kernel-e08ec26928554c36e34e089f663dc9114d77b68c.zip | |
tools: Add additional SYM_*() stubs to linkage.h
Similar to commit f8d92fc527ff ("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 <[email protected]>
Reviewed-by: Jens Remus <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
| -rw-r--r-- | tools/include/linux/linkage.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/include/linux/linkage.h b/tools/include/linux/linkage.h index a48ff086899c..a89620c550ed 100644 --- a/tools/include/linux/linkage.h +++ b/tools/include/linux/linkage.h @@ -2,7 +2,9 @@ #define _TOOLS_INCLUDE_LINUX_LINKAGE_H #define SYM_FUNC_START(x) .globl x; x: - #define SYM_FUNC_END(x) +#define SYM_DATA_START(x) .globl x; x: +#define SYM_DATA_START_LOCAL(x) x: +#define SYM_DATA_END(x) #endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */ |
