linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] x86: jump_label.c: move 'inline' keyword placement
@ 2020-03-26 21:16 Randy Dunlap
  2020-03-27 14:54 ` [tip: x86/cleanups] x86/jump_label: Move " tip-bot2 for Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2020-03-26 21:16 UTC (permalink / raw)
  To: LKML, X86 ML, Thomas Gleixner, H. Peter Anvin, Borislav Petkov,
	Ingo Molnar
  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,
 ^~~~~~

Reported-by: Zzy Wysm <zzy@zzywysm.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
v2: use Reported-by:

 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] 2+ messages in thread

* [tip: x86/cleanups] x86/jump_label: Move 'inline' keyword placement
  2020-03-26 21:16 [PATCH v2] x86: jump_label.c: move 'inline' keyword placement Randy Dunlap
@ 2020-03-27 14:54 ` tip-bot2 for Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Randy Dunlap @ 2020-03-27 14:54 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Zzy Wysm, Randy Dunlap, Borislav Petkov, x86, LKML

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     4de4952c0abcb490039cdc946e49ed7f237285a2
Gitweb:        https://git.kernel.org/tip/4de4952c0abcb490039cdc946e49ed7f237285a2
Author:        Randy Dunlap <rdunlap@infradead.org>
AuthorDate:    Thu, 26 Mar 2020 14:16:58 -07:00
Committer:     Borislav Petkov <bp@suse.de>
CommitterDate: Fri, 27 Mar 2020 11:05:41 +01:00

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 <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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/jump_label.c b/arch/x86/kernel/jump_label.c
index 9c4498e..5ba8477 100644
--- a/arch/x86/kernel/jump_label.c
+++ b/arch/x86/kernel/jump_label.c
@@ -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)
 {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-27 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 21:16 [PATCH v2] x86: jump_label.c: move 'inline' keyword placement Randy Dunlap
2020-03-27 14:54 ` [tip: x86/cleanups] x86/jump_label: Move " tip-bot2 for 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).