Skip to content

Commit c152aed

Browse files
arndbctmarinas
authored andcommitted
arm64: add alt_cb_patch_nops prototype
alt_cb_patch_nops() is called through an inline asm macro, so it does not need a prototype for the caller, but adding it avoids this W=1 build warning: arch/arm64/kernel/alternative.c:295:14: error: no previous prototype for 'alt_cb_patch_nops' [-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 e13d32e commit c152aed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm64/include/asm/alternative.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ void apply_alternatives_module(void *start, size_t length);
3131
static inline void apply_alternatives_module(void *start, size_t length) { }
3232
#endif
3333

34+
void alt_cb_patch_nops(struct alt_instr *alt, __le32 *origptr,
35+
__le32 *updptr, int nr_inst);
36+
3437
#endif /* __ASSEMBLY__ */
3538
#endif /* __ASM_ALTERNATIVE_H */

0 commit comments

Comments
 (0)