mark kmem_cache as __ro_after_init

Signed-off-by: anupritaisno1 <www.anuprita804@gmail.com>
This commit is contained in:
Daniel Micay 2017-05-28 18:51:30 -04:00 committed by Kreciorek
parent 6527a24e6f
commit 2080fd3f3a

View file

@ -36,7 +36,7 @@
enum slab_state slab_state;
LIST_HEAD(slab_caches);
DEFINE_MUTEX(slab_mutex);
struct kmem_cache *kmem_cache;
struct kmem_cache *kmem_cache __ro_after_init;
#ifdef CONFIG_HARDENED_USERCOPY
bool usercopy_fallback __ro_after_init =