summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-08-10 22:46:49 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-08-12 16:47:06 +0100
commit7619751f8c900fa5fdd76db06f4caf095c56de8e (patch)
treec4b0185d61b10af7b385e2c20cbe15137ac93097 /arch/arm/lib
parentd782e426b835bd2e79d868eb4af8510ed79e0aee (diff)
downloadlinux-stable-7619751f8c900fa5fdd76db06f4caf095c56de8e.tar.gz
linux-stable-7619751f8c900fa5fdd76db06f4caf095c56de8e.tar.bz2
linux-stable-7619751f8c900fa5fdd76db06f4caf095c56de8e.zip
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/lib')
-rw-r--r--arch/arm/lib/delay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/delay.c b/arch/arm/lib/delay.c
index 8044591dca72..2cef11884857 100644
--- a/arch/arm/lib/delay.c
+++ b/arch/arm/lib/delay.c
@@ -29,7 +29,7 @@
/*
* Default to the loop-based delay implementation.
*/
-struct arm_delay_ops arm_delay_ops = {
+struct arm_delay_ops arm_delay_ops __ro_after_init = {
.delay = __loop_delay,
.const_udelay = __loop_const_udelay,
.udelay = __loop_udelay,