From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com ([134.134.136.20]:26197 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbgBRPqM (ORCPT ); Tue, 18 Feb 2020 10:46:12 -0500 Date: Tue, 18 Feb 2020 07:46:10 -0800 From: Sean Christopherson Subject: Re: [PATCH v2 01/42] mm:gup/writeback: add callbacks for inaccessible pages Message-ID: <20200218154610.GB27565@linux.intel.com> References: <20200214222658.12946-1-borntraeger@de.ibm.com> <20200214222658.12946-2-borntraeger@de.ibm.com> <107a8a72-b745-26f2-5805-c4d99ce77b35@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-s390-owner@vger.kernel.org List-ID: To: David Hildenbrand Cc: Christian Borntraeger , Janosch Frank , Andrew Morton , KVM , Cornelia Huck , Thomas Huth , Ulrich Weigand , Claudio Imbrenda , linux-s390 , Michael Mueller , Vasily Gorbik , Andrea Arcangeli , linux-mm@kvack.org, Will Deacon On Tue, Feb 18, 2020 at 09:27:20AM +0100, David Hildenbrand wrote: > On 17.02.20 12:10, Christian Borntraeger wrote: > > So yes, if everything is setup properly this should not fail in real life > > and only we have a kernel (or firmware) bug. > > > > Then, without feedback from other possible users, this should be a void > function. So either introduce error handling or convert it to a void for > now (and add e.g., BUG_ON and a comment inside the s390x implementation). My preference would also be for a void function (versus ignoring an int return).