lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201026124702.874c23068ecc.I4c3cbf992dc2c038117a01c2cd9a4c406b89ec94@changeid>
Date:   Mon, 26 Oct 2020 12:47:03 +0100
From:   Johannes Berg <johannes@...solutions.net>
To:     linux-um@...ts.infradead.org
Cc:     linux-kernel@...r.kernel.org, Joe Perches <joe@...ches.com>,
        Johannes Berg <johannes.berg@...el.com>,
        Geert Uytterhoeven <geert@...ux-m68k.org>,
        Christopher Obbard <chris.obbard@...labora.com>
Subject: [PATCH] um: include compiler_attributes.h where used

From: Johannes Berg <johannes.berg@...el.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@...ux-m68k.org>
Cause-identified-by: Christopher Obbard <chris.obbard@...labora.com>
Signed-off-by: Johannes Berg <johannes.berg@...el.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@...dtoit,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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ