From ae146b9a201e7b8fea96f4ea618474c6832fe7d1 Mon Sep 17 00:00:00 2001 From: Rohit Agarwal Date: Fri, 19 Jan 2024 14:06:33 +0530 Subject: [PATCH] soc: qcom: minidump_log: Protect md_dump_slabinfo under SLUB_DEBUG Protect md_dump_slabinfo call only if SLUB_DEBUG is enabled. Change-Id: I1f703e039517dd24fad303f830a6a30a3f32c3f7 Signed-off-by: Rohit Agarwal --- drivers/soc/qcom/minidump_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/minidump_log.c b/drivers/soc/qcom/minidump_log.c index 921e2a6ea63b..771e6f4f03ed 100644 --- a/drivers/soc/qcom/minidump_log.c +++ b/drivers/soc/qcom/minidump_log.c @@ -1006,10 +1006,10 @@ dump_rq: if (md_meminfo_seq_buf) md_dump_meminfo(); +#ifdef CONFIG_SLUB_DEBUG if (md_slabinfo_seq_buf) md_dump_slabinfo(); -#ifdef CONFIG_SLUB_DEBUG if (md_slabowner_dump_addr) md_dump_slabowner(); #endif