* [PATCH] x86: jump_label.c: fix gcc inline keyword placement warning
@ 2020-03-26 18:55 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2020-03-26 18:55 UTC (permalink / raw)
To: LKML, X86 ML; +Cc: Zzy Wysm
From: Randy Dunlap <rdunlap@infradead.org>
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 <rdunlap@infradead.org>
---
@Zzy: do you want a Reported-by: line in the patch?
Reported-by: Zzy Wysm <zzy@zzywysm.com>
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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-26 18:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 18:55 [PATCH] x86: jump_label.c: fix gcc inline keyword placement warning Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).