UPSTREAM: ARM: 8597/1: VDSO: put RO and RO after init objects into proper sections
authorJisheng Zhang <jszhang@marvell.com>
Mon, 15 Aug 2016 08:20:21 +0000 (09:20 +0100)
committerMark Salyzyn <salyzyn@google.com>
Thu, 30 Mar 2017 16:16:29 +0000 (09:16 -0700)
commitb4b7a2466892929e5f72104089505f7b5bb7bfd6
treecf22e3280a1baca2d3bfbe04d0cfd88f31fa59d6
parentc2e0fb3550184ee2afeb98c7e8fd481ab750679a
UPSTREAM: ARM: 8597/1: VDSO: put RO and RO after init objects into proper sections

(cherry pick from commit 92bb8d5d55f7fe1a7a1201c42120c1611840807c)

vdso_data_mapping is never modified, so mark it as const.

vdso_total_pages, vdso_data_page, vdso_text_mapping and cntvct_ok are
initialized by vdso_init(), thereafter are read only.

The fact that they are read only after init makes them candidates for
__ro_after_init declarations.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Nathan Lynch <nathan_lynch@mentor.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Bug: 20045882
Bug: 19198045
Change-Id: I0b2f9807d3cd66c5ef7457ac6fc180a41cbe05c6
arch/arm/kernel/vdso.c