From 88a604e7c4a24b4a6ea230431e3567ed9edfcdcf Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Fri, 13 Dec 2024 19:44:19 +0100 Subject: [PATCH] Revert "mark kmem_cache as __ro_after_init" This reverts commit 2080fd3f3a963a8a3802119c102f56ec840204e5. --- mm/slab_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index 01389468e..05135ebb6 100755 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -36,7 +36,7 @@ enum slab_state slab_state; LIST_HEAD(slab_caches); DEFINE_MUTEX(slab_mutex); -struct kmem_cache *kmem_cache __ro_after_init; +struct kmem_cache *kmem_cache; #ifdef CONFIG_HARDENED_USERCOPY bool usercopy_fallback __ro_after_init =