ARM: 8733/1: hw_breakpoint: Mark variables as __ro_after_init
authorJinbum Park <jinb.park7@gmail.com>
Tue, 12 Dec 2017 00:20:51 +0000 (01:20 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 17 Dec 2017 22:16:20 +0000 (22:16 +0000)
commit670431eaacbfa30be59f4ea027a2d9662ddf2bff
tree984f7808115c400fb3aeaebcfb306f3ecc505ad1
parent7710cc691cfc5ad457173944d989875a6e79d238
ARM: 8733/1: hw_breakpoint: Mark variables as __ro_after_init

core_num_brps, core_num_wrps, debug_arch, has_ossr,
max_watchpoint_len are setup once while init stage,
and never changed after that.
so it is good candidate for __ro_after_init.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jinbum Park <jinb.park7@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/hw_breakpoint.c