Received: by 10.192.165.156 with SMTP id m28csp629525imm; Tue, 17 Apr 2018 16:53:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6IaBmcCvc/cAVF7y/7JI2Wwr5MKvcqB86w+3VGzggy39aVM2ceDpMKSycGUjE6xfwz2iF X-Received: by 10.98.201.15 with SMTP id k15mr3715717pfg.184.1524009189436; Tue, 17 Apr 2018 16:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524009189; cv=none; d=google.com; s=arc-20160816; b=sN0DG6bCkJUwlvbO45f617fmcuYZq5qOW0dRVjWh4S2gBA3LBfa31+KzRLcucqlZUl F0ec3a4GAVmuHFHO6dRzZ+bf2bi3MXRQyHfASAq2cqk8QfxuJj2MnFQ3KiT+VaBsXZHX n8NbeRW+VD9fWyx5qSHC3RH8QLSsf0g78VuizhnCEXB+XM97tmc38nECerVr13bBMmyZ lVmVMcBgFoE6diXtd5hxanFsdhebqoAQCRn0+VxGnCVMo0yctv2ZKekGaIotBlHlB7Vy ColEgauWsjBl1plCl1jOKvQmT+aLyCDCOyxJwYFaNkfFpdEohn3fafKfzYuL42S15i3N FNNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=GPURw3QN9bQaSLcU6o4Fck5xhxaegaWb3kQo0LFXmWc=; b=fqf2piRNjZpQbj6S/T9h7ZyXHBwXPMLFE0nmW5gjf1tS+Ui60N1GTKXpQ2/5ezmp+A vTQ+Lcfs0GBG929ztilxz4zze10zsW7OZHw1nvCPNlnB+81m5TaoRP0qdSpc6SAceWmM yn8uYqibhIFs6jy6/IwtpcAHLdDpaecKzDdMyA4bo7KwAh3JraB6lxs/DKdsK/kD9X2v M6A/vsU+EkvgEDX4hvJ0eKKzbDt26XYdHFsdq53D/9DsDWOCNIFCDds+SCF+NzC3U0qF lv0Z6GvFPNwmq3i/x8aEg3cnFBZTXNrg6iHvjG2SKZLVqaBptDVB3xYQPbyLdWYIfRTH /QIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si8329048pgn.37.2018.04.17.16.52.53; Tue, 17 Apr 2018 16:53:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752975AbeDQXvi (ORCPT + 99 others); Tue, 17 Apr 2018 19:51:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53484 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751164AbeDQXvh (ORCPT ); Tue, 17 Apr 2018 19:51:37 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3HNnX98107320 for ; Tue, 17 Apr 2018 19:51:36 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hds1pc0n4-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 17 Apr 2018 19:51:36 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Apr 2018 00:51:34 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 18 Apr 2018 00:51:30 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3HNpUZE59572438; Tue, 17 Apr 2018 23:51:30 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5549011C050; Wed, 18 Apr 2018 00:43:26 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0453211C04C; Wed, 18 Apr 2018 00:43:26 +0100 (BST) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 Apr 2018 00:43:25 +0100 (BST) Received: from [9.102.42.12] (unknown [9.102.42.12]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 06996A0195; Wed, 18 Apr 2018 09:51:27 +1000 (AEST) Subject: Re: [PATCH] misc: cxl: Change return type to vm_fault_t To: Souptick Joarder , fbarrat@linux.vnet.ibm.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, willy@infradead.org References: <20180417145354.GA31451@jordon-HP-15-Notebook-PC> From: Andrew Donnellan Date: Wed, 18 Apr 2018 09:51:27 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180417145354.GA31451@jordon-HP-15-Notebook-PC> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18041723-0040-0000-0000-000004302257 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041723-0041-0000-0000-000026342F99 Message-Id: <384a35d1-30dd-55d1-4a19-d7c9dc99bdfb@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-17_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804170206 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/04/18 00:53, Souptick Joarder wrote: > Use new return type vm_fault_t for fault handler. For > now, this is just documenting that the function returns > a VM_FAULT value rather than an errno. Once all instances > are converted, vm_fault_t will become a distinct type. > > Reference id -> 1c8f422059ae ("mm: change return type to > vm_fault_t") > > previously cxl_mmap_fault returns VM_FAULT_NOPAGE as > default value irrespective of vm_insert_pfn() return > value. This bug is fixed with new vmf_insert_pfn() > which will return VM_FAULT_ type based on err. > > Signed-off-by: Souptick Joarder This looks good to me Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnellan@au1.ibm.com IBM Australia Limited