All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] um: Fix inline void order in function declaration
@ 2021-04-15 21:02 ` Colin King
  0 siblings, 0 replies; 2+ messages in thread
From: Colin King @ 2021-04-15 21:02 UTC (permalink / raw)
  To: Jeff Dike, Richard Weinberger, Anton Ivanov, Thomas Gleixner,
	Ingo Molnar, Borislav Petkov, x86, H . Peter Anvin,
	Johannes Berg, linux-um
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The inline keyword should be between storage class and type. Fix
this by swapping void inline to inline void.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 arch/x86/um/shared/sysdep/stub_32.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/um/shared/sysdep/stub_32.h b/arch/x86/um/shared/sysdep/stub_32.h
index c3891c1ada26..b95db9daf0e8 100644
--- a/arch/x86/um/shared/sysdep/stub_32.h
+++ b/arch/x86/um/shared/sysdep/stub_32.h
@@ -77,7 +77,7 @@ static inline void trap_myself(void)
 	__asm("int3");
 }
 
-static void inline remap_stack_and_trap(void)
+static inline void remap_stack_and_trap(void)
 {
 	__asm__ volatile (
 		"movl %%esp,%%ebx ;"
-- 
2.30.2


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

* [PATCH] um: Fix inline void order in function declaration
@ 2021-04-15 21:02 ` Colin King
  0 siblings, 0 replies; 2+ messages in thread
From: Colin King @ 2021-04-15 21:02 UTC (permalink / raw)
  To: Jeff Dike, Richard Weinberger, Anton Ivanov, Thomas Gleixner,
	Ingo Molnar, Borislav Petkov, x86, H . Peter Anvin,
	Johannes Berg, linux-um
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The inline keyword should be between storage class and type. Fix
this by swapping void inline to inline void.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 arch/x86/um/shared/sysdep/stub_32.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/um/shared/sysdep/stub_32.h b/arch/x86/um/shared/sysdep/stub_32.h
index c3891c1ada26..b95db9daf0e8 100644
--- a/arch/x86/um/shared/sysdep/stub_32.h
+++ b/arch/x86/um/shared/sysdep/stub_32.h
@@ -77,7 +77,7 @@ static inline void trap_myself(void)
 	__asm("int3");
 }
 
-static void inline remap_stack_and_trap(void)
+static inline void remap_stack_and_trap(void)
 {
 	__asm__ volatile (
 		"movl %%esp,%%ebx ;"
-- 
2.30.2


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um


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

end of thread, other threads:[~2021-04-15 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15 21:02 [PATCH] um: Fix inline void order in function declaration Colin King
2021-04-15 21:02 ` Colin King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.