diff --git a/drivers/soc/qcom/minidump_log.c b/drivers/soc/qcom/minidump_log.c index ac26549bf15e..6d2310368f99 100644 --- a/drivers/soc/qcom/minidump_log.c +++ b/drivers/soc/qcom/minidump_log.c @@ -1012,10 +1012,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