From: akpm@linux-foundation.org Subject: + mm-rmap-fix-coccinelle-warnings.patch added to -mm tree Date: Thu, 23 Jan 2014 12:58:19 -0800 Message-ID: <52e1826b.98DDZRMo9czWRrEs%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:36150 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751490AbaAWU6U (ORCPT ); Thu, 23 Jan 2014 15:58:20 -0500 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, fengguang.wu@intel.com Subject: + mm-rmap-fix-coccinelle-warnings.patch added to -mm tree To: fengguang.wu@intel.com From: akpm@linux-foundation.org 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 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 Signed-off-by: Fengguang Wu Signed-off-by: Andrew Morton --- mm/rmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN mm/rmap.c~mm-rmap-fix-coccinelle-warnings mm/rmap.c --- a/mm/rmap.c~mm-rmap-fix-coccinelle-warnings +++ a/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 fengguang.wu@intel.com 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