Skip to content

Commit 00979ce

Browse files
committed
linux/linkage.h: replace VMLINUX_SYMBOL_STR() with __stringify()
With the special case handling for Blackfin and Metag was removed by commit 94e58e0 ("export.h: remove code for prefixing symbols with underscore"), VMLINUX_SYMBOL_STR() is now equivalent to __stringify(). Replace the remaining usages in <linux/linkage.h> to prepare for the entire removal of VMLINUX_SYMBOL_STR(). Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 8593080 commit 00979ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/linux/linkage.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424

2525
#ifndef cond_syscall
2626
#define cond_syscall(x) asm( \
27-
".weak " VMLINUX_SYMBOL_STR(x) "\n\t" \
28-
".set " VMLINUX_SYMBOL_STR(x) "," \
29-
VMLINUX_SYMBOL_STR(sys_ni_syscall))
27+
".weak " __stringify(x) "\n\t" \
28+
".set " __stringify(x) "," \
29+
__stringify(sys_ni_syscall))
3030
#endif
3131

3232
#ifndef SYSCALL_ALIAS
3333
#define SYSCALL_ALIAS(alias, name) asm( \
34-
".globl " VMLINUX_SYMBOL_STR(alias) "\n\t" \
35-
".set " VMLINUX_SYMBOL_STR(alias) "," \
36-
VMLINUX_SYMBOL_STR(name))
34+
".globl " __stringify(alias) "\n\t" \
35+
".set " __stringify(alias) "," \
36+
__stringify(name))
3737
#endif
3838

3939
#define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE)

0 commit comments

Comments
 (0)