[PATCH] mm: build error in dump_mm without CONFIG_COMPACTION

From: Sasha Levin
Date: Mon Sep 22 2014 - 22:54:32 EST


In the case of CONFIG_NUMA_BALANCING set and CONFIG_COMPACTION isn't,
we'd fail to put a "," at the end of the formatting string and cause
a build failure.

Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx>
---
mm/debug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/debug.c b/mm/debug.c
index 544d8f6..8fbc417 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -192,9 +192,9 @@ void dump_mm(const struct mm_struct *mm)
"numa_next_scan %lu numa_scan_offset %lu numa_scan_seq %d\n"
#endif
#if defined(CONFIG_NUMA_BALANCING) || defined(CONFIG_COMPACTION)
- "tlb_flush_pending %d\n",
+ "tlb_flush_pending %d\n"
#endif
- mm, mm->mmap, mm->vmacache_seqnum, mm->task_size,
+ , mm, mm->mmap, mm->vmacache_seqnum, mm->task_size,
#ifdef CONFIG_MMU
mm->get_unmapped_area,
#endif
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/