Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbdDCVWn (ORCPT ); Mon, 3 Apr 2017 17:22:43 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38955 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbdDCVWm (ORCPT ); Mon, 3 Apr 2017 17:22:42 -0400 Date: Mon, 3 Apr 2017 16:22:32 -0500 From: Reza Arbab 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 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> Organization: IBM Linux Technology Center User-Agent: NeoMutt/20170306 (1.8.0) X-TM-AS-GCONF: 00 x-cbid: 17040321-0052-0000-0000-000001C5F4EC X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006877; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000208; SDB=6.00842645; UDB=6.00415098; IPR=6.00620820; BA=6.00005262; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014892; XFM=3.00000013; UTC=2017-04-03 21:22:39 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17040321-0053-0000-0000-00004FA70AA0 Message-Id: <20170403212232.s3zynq2hh6hpnefr@arbab-laptop> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-03_19:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1704030189 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 484 Lines: 12 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