Skip to content

Commit aea1971

Browse files
arndbctmarinas
authored andcommitted
arm64: add scs_patch_vmlinux prototype
scs_patch_vmlinux() is only called from assembler code, so there is no prototype, but adding one avoids this warning: arch/arm64/kernel/patch-scs.c:254:24: error: no previous prototype for function 'scs_patch_vmlinux' [-Werror,-Wmissing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20230516160642.523862-3-arnd@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 320a93d commit aea1971

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • arch/arm64/include/asm

arch/arm64/include/asm/scs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static inline void dynamic_scs_init(void) {}
7373
#endif
7474

7575
int scs_patch(const u8 eh_frame[], int size);
76+
asmlinkage void scs_patch_vmlinux(void);
7677

7778
#endif /* __ASSEMBLY __ */
7879

0 commit comments

Comments
 (0)