[PATCH] um: include compiler_attributes.h where used

From: Johannes Berg
Date: Mon Oct 26 2020 - 08:24:40 EST


From: Johannes Berg <johannes.berg@xxxxxxxxx>

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@xxxxxxxxxxxxxx>
Cause-identified-by: Christopher Obbard <chris.obbard@xxxxxxxxxxxxx>
Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
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