diff options
author | Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com> | 2012-06-07 16:23:56 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-06-22 09:47:35 +0800 |
commit | a16dacd6ca3f932defcac5fd4726018aac4c730a (patch) | |
tree | ea8744f1841eeae5d5a8636e73a4aad6c8b57e94 /mm | |
parent | cdb7d5976e23508898c2cd0ffaa155382388495d (diff) |
cma: Fix CMA checkpatch warnings
This patch fixes checkpatch warnings existing in the cma patchset
as of v3.4_rc5. This is maintained as an incremental patch on top
of the original cma patchset to facilitate tracking cma patches.
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/compaction.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index da7d35ea5103..9aa46eb4471e 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -364,7 +364,9 @@ static bool suitable_migration_target(struct page *page) int migratetype = get_pageblock_migratetype(page); - /* Don't interfere with memory hot-remove or the min_free_kbytes blocks */ + /* Don't interfere with memory hot-remove or + * the min_free_kbytes blocks + */ if (migratetype == MIGRATE_ISOLATE || migratetype == MIGRATE_RESERVE) return false; @@ -516,17 +518,17 @@ static void update_nr_listpages(struct compact_control *cc) } /* possible outcome of isolate_migratepages */ -typedef enum { +enum { ISOLATE_ABORT, /* Abort compaction now */ ISOLATE_NONE, /* No pages isolated, continue scanning */ ISOLATE_SUCCESS, /* Pages isolated, migrate */ -} isolate_migrate_t; +}; /* * Isolate all pages that can be migrated from the block pointed to by * the migrate scanner within compact_control. */ -static isolate_migrate_t isolate_migratepages(struct zone *zone, +static u32 isolate_migratepages(struct zone *zone, struct compact_control *cc) { unsigned long low_pfn, end_pfn; |