From 3bac03f27f233aa725384d00feaf1d406221e7fd Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 20 Jun 2014 10:27:25 +1000 Subject: [PATCH] hugetlb-fix-copy_hugetlb_page_range-to-handle-migration-hwpoisoned-entry-checkpatch-fixes WARNING: Missing a blank line after declarations #65: FILE: mm/hugetlb.c:2593: + swp_entry_t swp_entry = pte_to_swp_entry(entry); + if (is_write_migration_entry(swp_entry) && cow) { total: 0 errors, 1 warnings, 90 lines checked ./patches/hugetlb-fix-copy_hugetlb_page_range-to-handle-migration-hwpoisoned-entry.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Naoya Horiguchi Signed-off-by: Andrew Morton --- mm/hugetlb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a3f6349ab5b5d2..2024bbd573d2a9 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -2590,6 +2590,7 @@ int copy_hugetlb_page_range(struct mm_struct *dst, struct mm_struct *src, } else if (unlikely(is_hugetlb_entry_migration(entry) || is_hugetlb_entry_hwpoisoned(entry))) { swp_entry_t swp_entry = pte_to_swp_entry(entry); + if (is_write_migration_entry(swp_entry) && cow) { /* * COW mappings require pages in both