Skip to content

Commit a7f5cb6

Browse files
arndbctmarinas
authored andcommitted
arm64: kaslr: add kaslr_early_init() declaration
kaslr_early_init() is called from assembler code and does not need a declaration to work, but adding one anyway shuts up this W=1 warning: arch/arm64/kernel/pi/kaslr_early.c:88:16: error: no previous prototype for 'kaslr_early_init' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 1a11839 commit a7f5cb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/include/asm/archrandom.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,6 @@ static inline bool __init __early_cpu_has_rndr(void)
129129
return (ftr >> ID_AA64ISAR0_EL1_RNDR_SHIFT) & 0xf;
130130
}
131131

132+
u64 kaslr_early_init(void *fdt);
133+
132134
#endif /* _ASM_ARCHRANDOM_H */

0 commit comments

Comments
 (0)