From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f200.google.com (mail-wr0-f200.google.com [209.85.128.200]) by kanga.kvack.org (Postfix) with ESMTP id 04E0D6B0038 for ; Mon, 3 Apr 2017 17:22:45 -0400 (EDT) Received: by mail-wr0-f200.google.com with SMTP id t20so798917wra.12 for ; Mon, 03 Apr 2017 14:22:44 -0700 (PDT) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id p71si5569759wmd.10.2017.04.03.14.22.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 14:22:43 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v33LIfbI118304 for ; Mon, 3 Apr 2017 17:22:42 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0b-001b2d01.pphosted.com with ESMTP id 29kqbkcxsu-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 03 Apr 2017 17:22:41 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 3 Apr 2017 17:22:40 -0400 Date: Mon, 3 Apr 2017 16:22:32 -0500 From: Reza Arbab Subject: Re: [PATCH 3/6] mm: remove return value from init_currently_empty_zone References: <20170330115454.32154-1-mhocko@kernel.org> <20170330115454.32154-4-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170330115454.32154-4-mhocko@kernel.org> Message-Id: <20170403212232.s3zynq2hh6hpnefr@arbab-laptop> Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko Cc: linux-mm@kvack.org, Andrew Morton , Mel Gorman , Vlastimil Babka , Andrea Arcangeli , Yasuaki Ishimatsu , Tang Chen , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , Zhang Zhen , David Rientjes , Daniel Kiper , Igor Mammedov , Vitaly Kuznetsov , LKML , Michal Hocko On Thu, Mar 30, 2017 at 01:54:51PM +0200, Michal Hocko wrote: >init_currently_empty_zone doesn't have any error to return yet it is >still an int and callers try to be defensive and try to handle potential >error. Remove this nonsense and simplify all callers. Semi-related; arch_remove_memory() returns int, but callers ignore it. Is that worth cleaning up? If so, should the implementations be simplified, or should we maybe do a pr_error() or something with it? -- Reza Arbab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org