Skip to contentSkip to conversation

+ mm-rmap-fix-coccinelle-warnings.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 23, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-rmap-fix-coccinelle-warnings.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Thu, 23 Jan 2014 12:58:19 -0800

The patch titled
Subject: mm/rmap: fix coccinelle warnings
has been added to the -mm tree. Its filename is
mm-rmap-fix-coccinelle-warnings.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-rmap-fix-coccinelle-warnings.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-rmap-fix-coccinelle-warnings.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Fengguang Wu <[email protected]>
Subject: mm/rmap: fix coccinelle warnings

mm/rmap.c:851:9-10: WARNING: return of 0/1 in function 'invalid_mkclean_vma' with return type bool

Return statements in functions returning bool should use true/false instead of 1/0.

Generated by: coccinelle/misc/boolreturn.cocci

---

 mm/rmap.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/rmap.c renamed from mm/rmap.c~mm-rmap-fix-coccinelle-warnings +2 -2
diff -puN mm/rmap.c~mm-rmap-fix-coccinelle-warnings mm/rmap.c
@@ -848,9 +848,9 @@ out:
 static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg)
 {
 	if (vma->vm_flags & VM_SHARED)
-		return 0;
+		return false;
 
-	return 1;
+	return true;
 }
 
 int page_mkclean(struct page *page)

_

Patches currently in -mm which might be from [email protected] are

origin.patch fs-proc-pagec-add-pageanon-check-to-surely-detect-thp.patch memcg-rework-memcg_update_kmem_limit-synchronization-fix.patch mm-rmap-fix-coccinelle-warnings.patch swap-add-a-simple-detector-for-inappropriate-swapin-readahead.patch swap-add-a-simple-detector-for-inappropriate-swapin-readahead-fix.patch printk-cache-mark-printk_once-test-variable-__read_mostly-fix.patch rtc-add-hym8563-rtc-driver-fix.patch fs-ext3-use-rbtree-postorder-iteration-helper-instead-of-opencoding-fix.patch linux-next.patch
mm-add-strictlimit-knob-v2.patch debugging-keep-track-of-page-owners.patch