soc: qcom: Conditional compile page/slub minidumps

Put page owner and slub debug entries under conditional
flag, to avoid compilation issues.

Change-Id: I2a0c20f7bc9158e7a52e58c6a28a8f0859e83983
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
This commit is contained in:
Neeraj Upadhyay 2020-10-23 23:22:30 +05:30
commit 286fb48b3d

View file

@ -1248,16 +1248,20 @@ static void md_register_panic_data(void)
&md_meminfo_seq_buf);
md_register_panic_entries(MD_SLABINFO_PAGES, "SLABINFO",
&md_slabinfo_seq_buf);
#ifdef CONFIG_PAGE_OWNER
if (is_page_owner_enabled()) {
md_register_memory_dump(md_pageowner_dump_size, "PAGEOWNER");
debugfs_create_file("page_owner_dump_size_mb", 0400, NULL, NULL,
&proc_page_owner_dump_size_ops);
}
#endif
#ifdef CONFIG_SLUB_DEBUG
if (is_slub_debug_enabled()) {
md_register_memory_dump(md_slabowner_dump_size, "SLABOWNER");
debugfs_create_file("slab_owner_dump_size_mb", 0400, NULL, NULL,
&proc_slab_owner_dump_size_ops);
}
#endif
}
#ifdef CONFIG_MODULES