Skip to content

Commit 4de4952

Browse files
rddunlapsuryasaimadhu
authored andcommitted
x86/jump_label: Move 'inline' keyword placement
Fix gcc warning when -Wextra is used by moving the keyword: arch/x86/kernel/jump_label.c:61:1: warning: ‘inline’ is not at \ beginning of declaration [-Wold-style-declaration] static void inline __jump_label_transform(struct jump_entry *entry, ^~~~~~ Reported-by: Zzy Wysm <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 01bd186 commit 4de4952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/jump_label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ __jump_label_set_jump_code(struct jump_entry *entry, enum jump_label_type type,
5858
return code;
5959
}
6060

61-
static void inline __jump_label_transform(struct jump_entry *entry,
61+
static inline void __jump_label_transform(struct jump_entry *entry,
6262
enum jump_label_type type,
6363
int init)
6464
{

0 commit comments

Comments
 (0)