]> git.baikalelectronics.ru Git - kernel.git/commit
tile: handle __ro_after_init like parisc does
authorChris Metcalf <cmetcalf@mellanox.com>
Mon, 7 Nov 2016 19:32:02 +0000 (14:32 -0500)
committerChris Metcalf <cmetcalf@mellanox.com>
Mon, 14 Nov 2016 21:46:41 +0000 (16:46 -0500)
commitf5218e0ccb31ebf2818914f6e4fa581c6ac821f3
tree547970f8b4d4738328445bacc2431753b3faf6e0
parent227ce641993c06c01b6ac0986ced6c2ef6b800df
tile: handle __ro_after_init like parisc does

The tile architecture already marks RO_DATA as read-only in
the kernel, so grouping RO_AFTER_INIT_DATA with RO_DATA, as is
done by default, means the kernel faults in init when it tries
to write to RO_AFTER_INIT_DATA.  For now, just arrange that
__ro_after_init is handled like __write_once, i.e. __read_mostly.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
arch/tile/include/asm/cache.h