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)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:55:16 +0000 (13:25 +0530)
commit74a0b466674c7ebaf8aeb03cbb0299be30bb78e9
tree0e289ca854978a37ab06dc11f7dfaaa98e7540f5
parent688a44fed318c23f71b9b78615a5029425b91dc8
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