Skip to content

Commit f861280

Browse files
kevin-brodsky-armctmarinas
authored andcommitted
arm64/syscall: Remove duplicate declaration
Commit 6ac19f9 ("arm64: avoid prototype warnings for syscalls") added missing declarations to various syscall wrapper macros. It however proved a little too zealous in __SYSCALL_DEFINEx(), as a declaration for __arm64_sys##name was already present. A declaration is required before the call to ALLOW_ERROR_INJECTION(), so keep the original one and remove the new one. Fixes: 6ac19f9 ("arm64: avoid prototype warnings for syscalls") Signed-off-by: Kevin Brodsky <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 4bb4900 commit f861280

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arm64/include/asm/syscall_wrapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
ALLOW_ERROR_INJECTION(__arm64_sys##name, ERRNO); \
5555
static long __se_sys##name(__MAP(x,__SC_LONG,__VA_ARGS__)); \
5656
static inline long __do_sys##name(__MAP(x,__SC_DECL,__VA_ARGS__)); \
57-
asmlinkage long __arm64_sys##name(const struct pt_regs *regs); \
5857
asmlinkage long __arm64_sys##name(const struct pt_regs *regs) \
5958
{ \
6059
return __se_sys##name(SC_ARM64_REGS_TO_ARGS(x,__VA_ARGS__)); \

0 commit comments

Comments
 (0)