x86/jump_label: Move 'inline' keyword placement
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 26 Mar 2020 21:16:58 +0000 (14:16 -0700)
committerBorislav Petkov <bp@suse.de>
Fri, 27 Mar 2020 10:05:41 +0000 (11:05 +0100)
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 <zzy@zzywysm.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/796d93d2-e73e-3447-44eb-4f89e1b636d9@infradead.org
arch/x86/kernel/jump_label.c

index 9c4498ea0b3c0d212d2d21ab20ca6cae309ef729..5ba8477c2cb7def46459d5918332b25e48547606 100644 (file)
@@ -58,7 +58,7 @@ __jump_label_set_jump_code(struct jump_entry *entry, enum jump_label_type type,
        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)
 {