summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/smp.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-08-10 21:46:49 (GMT)
committerRussell King <rmk+kernel@armlinux.org.uk>2016-08-12 15:47:06 (GMT)
commit7619751f8c900fa5fdd76db06f4caf095c56de8e (patch)
treec4b0185d61b10af7b385e2c20cbe15137ac93097 /arch/arm/kernel/smp.c
parentd782e426b835bd2e79d868eb4af8510ed79e0aee (diff)
downloadlinux-7619751f8c900fa5fdd76db06f4caf095c56de8e.tar.xz
ARM: 8595/2: apply more __ro_after_init
Guided by grsecurity's analogous __read_only markings in arch/arm, this applies several uses of __ro_after_init to structures that are only updated during __init. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r--arch/arm/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 8615216..937c892 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -82,7 +82,7 @@ enum ipi_msg_type {
static DECLARE_COMPLETION(cpu_running);
-static struct smp_operations smp_ops;
+static struct smp_operations smp_ops __ro_after_init;
void __init smp_set_ops(const struct smp_operations *ops)
{