Skip to content

Commit

Permalink
mm-uninline-page_mapped-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: Missing a blank line after declarations
torvalds#61: FILE: mm/util.c:356:
+	int i;
+	if (likely(!PageCompound(page)))

total: 0 errors, 1 warnings, 55 lines checked

./patches/mm-uninline-page_mapped.patch has style problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and sfrothwell committed Apr 3, 2016
1 parent 64c57d7 commit d09217b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ void *page_rmapping(struct page *page)
bool page_mapped(struct page *page)
{
int i;

if (likely(!PageCompound(page)))
return atomic_read(&page->_mapcount) >= 0;
page = compound_head(page);
Expand Down

0 comments on commit d09217b

Please sign in to comment.