* [PATCH] mm: fix build breakage in dump_mm if CONFIG_MEMCG is not set
@ 2014-09-23 1:43 Sasha Levin
0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2014-09-23 1:43 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Sasha Levin
mm_struct->owner is only available if CONFIG_MEMCG is set, fix build
by taking that into account.
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
mm/debug.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/mm/debug.c b/mm/debug.c
index 281abb2..544d8f6 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -181,7 +181,10 @@ void dump_mm(const struct mm_struct *mm)
#ifdef CONFIG_AIO
"ioctx_table %p\n"
#endif
- "owner %p exe_file %p\n"
+#ifdef CONFIG_MEMCG
+ "owner %p\n"
+#endif
+ "exe_file %p\n"
#ifdef CONFIG_MMU_NOTIFIER
"mmu_notifier_mm %p\n"
#endif
@@ -209,7 +212,10 @@ void dump_mm(const struct mm_struct *mm)
#ifdef CONFIG_AIO
mm->ioctx_table,
#endif
- mm->owner, mm->exe_file,
+#ifdef CONFIG_MEMCG
+ mm->owner,
+#endif
+ mm->exe_file,
#ifdef CONFIG_MMU_NOTIFIER
mm->mmu_notifier_mm,
#endif
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-23 1:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-23 1:43 [PATCH] mm: fix build breakage in dump_mm if CONFIG_MEMCG is not set Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).