From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0797FC34026 for ; Tue, 18 Feb 2020 15:46:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CDB2A2176D for ; Tue, 18 Feb 2020 15:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgBRPqM (ORCPT ); Tue, 18 Feb 2020 10:46:12 -0500 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 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Feb 2020 07:46:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,456,1574150400"; d="scan'208";a="258592417" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by fmsmga004.fm.intel.com with ESMTP; 18 Feb 2020 07:46:10 -0800 Date: Tue, 18 Feb 2020 07:46:10 -0800 From: Sean Christopherson 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 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: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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).