Skip to content

Commit ca8e45c

Browse files
committed
csky: fix arch_jump_label_transform_static override
The arch_jump_label_transform_static() function in csky was originally meant to override the generic __weak function, but that got changed to an #ifndef check. This showed up as a missing-prototype warning: arch/csky/kernel/jump_label.c:43:6: error: no previous prototype for 'arch_jump_label_transform_static' [-Werror=missing-prototypes] Change the method to use the new method of having a #define and a prototype for the global function. Fixes: 7e6b9db ("jump_label: make initial NOP patching the special case") Fixes: 4e8bb4b ("csky: Add jump-label implementation") Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 23f8c18 commit ca8e45c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

arch/csky/include/asm/jump_label.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,10 @@ static __always_inline bool arch_static_branch_jump(struct static_key *key,
4343
return true;
4444
}
4545

46+
enum jump_label_type;
47+
void arch_jump_label_transform_static(struct jump_entry *entry,
48+
enum jump_label_type type);
49+
#define arch_jump_label_transform_static arch_jump_label_transform_static
50+
4651
#endif /* __ASSEMBLY__ */
4752
#endif /* __ASM_CSKY_JUMP_LABEL_H */

0 commit comments

Comments
 (0)