mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] um: include compiler_attributes.h where used
@ 2020-10-26 11:47 Johannes Berg
  2020-10-26 11:53 ` Christopher Obbard
  2020-10-26 13:30 ` Joe Perches
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Berg @ 2020-10-26 11:47 UTC (permalink / raw)
  To: linux-um
  Cc: linux-kernel, Joe Perches, Johannes Berg, Geert Uytterhoeven,
	Christopher Obbard

From: Johannes Berg <johannes.berg@intel.com>

Joe's commit didn't only convert uses of __section(...) to add
the quotes, but _also_ converted 'raw' uses of __attribute__(())
for setting the section to use __section, but didn't update the
includes where necessary. Add them now.

Fixes: 33def8498fdd ("treewide: Convert macro and uses of __section(foo) to __section("foo")")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cause-identified-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 arch/um/kernel/skas/clone.c | 1 +
 arch/x86/um/stub_segv.c     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/um/kernel/skas/clone.c b/arch/um/kernel/skas/clone.c
index 95c355181dcd..dfd81d4d0f5f 100644
--- a/arch/um/kernel/skas/clone.c
+++ b/arch/um/kernel/skas/clone.c
@@ -4,6 +4,7 @@
  * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  */
 
+#include <linux/compiler_attributes.h>
 #include <signal.h>
 #include <sched.h>
 #include <asm/unistd.h>
diff --git a/arch/x86/um/stub_segv.c b/arch/x86/um/stub_segv.c
index fdcd58af707a..95110ad4f313 100644
--- a/arch/x86/um/stub_segv.c
+++ b/arch/x86/um/stub_segv.c
@@ -3,6 +3,7 @@
  * Licensed under the GPL
  */
 
+#include <linux/compiler_attributes.h>
 #include <sysdep/stub.h>
 #include <sysdep/faultinfo.h>
 #include <sysdep/mcontext.h>
-- 
2.26.2


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

* Re: [PATCH] um: include compiler_attributes.h where used
  2020-10-26 11:47 [PATCH] um: include compiler_attributes.h where used Johannes Berg
@ 2020-10-26 11:53 ` Christopher Obbard
  2020-10-26 13:30 ` Joe Perches
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Obbard @ 2020-10-26 11:53 UTC (permalink / raw)
  To: Johannes Berg, linux-um
  Cc: Joe Perches, Geert Uytterhoeven, linux-kernel, Johannes Berg



On 26/10/2020 11:47, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> Joe's commit didn't only convert uses of __section(...) to add
> the quotes, but _also_ converted 'raw' uses of __attribute__(())
> for setting the section to use __section, but didn't update the
> includes where necessary. Add them now.
> 
> Fixes: 33def8498fdd ("treewide: Convert macro and uses of __section(foo) to __section("foo")")
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Cause-identified-by: Christopher Obbard <chris.obbard@collabora.com>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Christopher Obbard <chris.obbard@collabora.com>

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

* Re: [PATCH] um: include compiler_attributes.h where used
  2020-10-26 11:47 [PATCH] um: include compiler_attributes.h where used Johannes Berg
  2020-10-26 11:53 ` Christopher Obbard
@ 2020-10-26 13:30 ` Joe Perches
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Perches @ 2020-10-26 13:30 UTC (permalink / raw)
  To: Johannes Berg, linux-um
  Cc: linux-kernel, Johannes Berg, Geert Uytterhoeven, Christopher Obbard

On Mon, 2020-10-26 at 12:47 +0100, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> Joe's commit didn't only convert uses of __section(...) to add
> the quotes, but _also_ converted 'raw' uses of __attribute__(())
> for setting the section to use __section, but didn't update the
> includes where necessary. Add them now.

Apologies and thank you.
I believed the robot had done these compilation tests.
 
> Fixes: 33def8498fdd ("treewide: Convert macro and uses of __section(foo) to __section("foo")")
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Cause-identified-by: Christopher Obbard <chris.obbard@collabora.com>
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>



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

end of thread, other threads:[~2020-10-26 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26 11:47 [PATCH] um: include compiler_attributes.h where used Johannes Berg
2020-10-26 11:53 ` Christopher Obbard
2020-10-26 13:30 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®