linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: compaction: remove unnecessary CONFIG_COMPACTION
@ 2019-02-26  6:19 Yafang Shao
  2019-02-26 12:32 ` Vlastimil Babka
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yafang Shao @ 2019-02-26  6:19 UTC (permalink / raw)
  To: akpm, mhocko; +Cc: linux-mm, shaoyafang, Yafang Shao

The file trace/events/compaction.h is included only when
CONFIG_COMPACTION is defined, so it is unnecessary to use
CONFIG_COMPACTION again in this file.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
---
 include/trace/events/compaction.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h
index 6074eff..06fb680 100644
--- a/include/trace/events/compaction.h
+++ b/include/trace/events/compaction.h
@@ -132,7 +132,6 @@
 		__entry->sync ? "sync" : "async")
 );
 
-#ifdef CONFIG_COMPACTION
 TRACE_EVENT(mm_compaction_end,
 	TP_PROTO(unsigned long zone_start, unsigned long migrate_pfn,
 		unsigned long free_pfn, unsigned long zone_end, bool sync,
@@ -166,7 +165,6 @@
 		__entry->sync ? "sync" : "async",
 		__print_symbolic(__entry->status, COMPACTION_STATUS))
 );
-#endif
 
 TRACE_EVENT(mm_compaction_try_to_compact_pages,
 
@@ -195,7 +193,6 @@
 		__entry->prio)
 );
 
-#ifdef CONFIG_COMPACTION
 DECLARE_EVENT_CLASS(mm_compaction_suitable_template,
 
 	TP_PROTO(struct zone *zone,
@@ -296,7 +293,6 @@
 
 	TP_ARGS(zone, order)
 );
-#endif
 
 TRACE_EVENT(mm_compaction_kcompactd_sleep,
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-26 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26  6:19 [PATCH] mm: compaction: remove unnecessary CONFIG_COMPACTION Yafang Shao
2019-02-26 12:32 ` Vlastimil Babka
2019-02-26 13:32   ` Yafang Shao
2019-02-26 14:31 ` kbuild test robot
2019-02-26 16:28 ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox