From ff5c74d00c5323f7be50fe66f3379b9a93632261 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Fri, 13 Dec 2024 19:44:19 +0100 Subject: [PATCH] Revert "add __ro_after_init to slab_nomerge and slab_state" This reverts commit a96370e583b2433c0d80ecf186a6d610795646d9. --- mm/slab_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/slab_common.c b/mm/slab_common.c index cb3633501..01389468e 100755 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -33,7 +33,7 @@ #include "slab.h" -enum slab_state slab_state __ro_after_init; +enum slab_state slab_state; LIST_HEAD(slab_caches); DEFINE_MUTEX(slab_mutex); struct kmem_cache *kmem_cache __ro_after_init; @@ -64,7 +64,7 @@ static DECLARE_WORK(slab_caches_to_rcu_destroy_work, /* * Merge control. If this is set then no merging of slab caches will occur. */ -static bool slab_nomerge __ro_after_init = !IS_ENABLED(CONFIG_SLAB_MERGE_DEFAULT); +static bool slab_nomerge = !IS_ENABLED(CONFIG_SLAB_MERGE_DEFAULT); static int __init setup_slab_nomerge(char *str) {