[lkml]   [2020]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] x86: jump_label.c: fix gcc inline keyword placement warning
From: Randy Dunlap <>

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,

Signed-off-by: Randy Dunlap <>
@Zzy: do you want a Reported-by: line in the patch?

Reported-by: Zzy Wysm <>

arch/x86/kernel/jump_label.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200326.orig/arch/x86/kernel/jump_label.c
+++ linux-next-20200326/arch/x86/kernel/jump_label.c
@@ -58,7 +58,7 @@ __jump_label_set_jump_code(struct jump_e
return code;

-static void inline __jump_label_transform(struct jump_entry *entry,
+static inline void __jump_label_transform(struct jump_entry *entry,
enum jump_label_type type,
int init)
 \ /
  Last update: 2020-03-26 19:57    [W:0.024 / U:10.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site