Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4071209imm; Mon, 25 Jun 2018 09:13:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLD/i5h2qEbADXHDmHMjMyHqyrWFlA+G/Ew2j3JRAi7z110/dNLwQozZd5TUYNVpV3TaNGT X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr13115687plr.132.1529943221191; Mon, 25 Jun 2018 09:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529943221; cv=none; d=google.com; s=arc-20160816; b=ORDWAMborsAFBz+IJE46ibMT7a6DebTEswsr+ZND665Y5wy2EbXm40jlh2lvyhOqVa d6lFVD6Hagc1t+Z5Z2BtK56bG+6bfo72eH+BCh8DPstkD9/FETPP9InHNyYmQ1bKLQiK tC0//dbY1NwoP2m5i9/0zazRui2V8Jr6YGtaGkfX0N3TBuPUaXufhAdSTxUcrKpzGgzB UIgRLpf/FmpTVk3MAD87g15+ZTolLne7RZVDIVPeJwoebT+zPV7UBe1l9j907IA1MGY7 LF0vwdteN0Js36tHjBDluSSqOO4iEq936s+ZdCTOC+5+zrxKnk9zbVBPBOmY0gvCQsXU Qu0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=Tz4sbTzwC6z1Al/KLeDwUzrLEXKFO94oX5VmfneQdmk=; b=06FSKYBtRYxc9Xzs37WoamIMhd3RLgn0zk46dG+eR9FKSjlyBE/vw2ijixW4Kfs5GK zRBnoKR9bt2jYvFrWvjQJNwMJkN8AJXF767klfG7f3UuDUnuMvgpxQf69N3fqaJzCNbP m0xFwdp8Vv5IXSFXQ2Tg/SBu29FagAX+M1VEjQbCMFWBRwa5fuNXNvsaEdTH+kr66eZ3 099YJpEByMCNPuGzulwzXexfz5hjnWIcYmIKUidLd0Jh962Y6FK3OMSSDst3qFB/pV4p rblTtrY3Mo9wQpzCn3cB07ab1VcCkLd9GVHqJWddogyHpnJVIGPlph9TbzO0l+vghPkl WQ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=zIiXDONN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18-v6si11869602pgp.214.2018.06.25.09.13.26; Mon, 25 Jun 2018 09:13:41 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=zIiXDONN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbeFYQLu (ORCPT + 99 others); Mon, 25 Jun 2018 12:11:50 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35520 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751410AbeFYQLs (ORCPT ); Mon, 25 Jun 2018 12:11:48 -0400 Received: by mail-wr0-f196.google.com with SMTP id c13-v6so4315942wrq.2 for ; Mon, 25 Jun 2018 09:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tz4sbTzwC6z1Al/KLeDwUzrLEXKFO94oX5VmfneQdmk=; b=zIiXDONN/g1IgTS+h18h6JppRFztUzY2dHQ8pnhQWOPl17FTkG9V4R5Kq5VovRP5+H cQqVy+PpcgEQKY3jwLdYrjdTfxaNyInpnPyv1xgOsRXqmf2MIdewaiCtr17hWxbYbOv2 iz1D/8iwmFrZFZx5U6BGY1QCDyaH3w0OVR5byH5hKCtfJNIMkcKKE/OdKF5Hcmcvi2mM PCyBoMb0gO7gBktauclB16L7ef0nUd/b/iCw4+MfGardPEAAkDIr9GDH7kP6doqhtCdt 1eb1UQas7yUx96/z4Vcp6hxSpAeuyilgzfHbKayEZhyQLaaJca7sZgKEsHpHpLQ09k9Y KkEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Tz4sbTzwC6z1Al/KLeDwUzrLEXKFO94oX5VmfneQdmk=; b=C844qJJqnTwATuHsQVGE6zSTw35n4qv2/nj+5uAbg0siDsPVYyPa5Fc2XVMlg3Q25R Id0L3y65L/oziZ8fpjXX+M6zNT1lNbDXweNSA8a3Qu4r2jBL37ckToi+7BCjyp+Vv/ec Ks1Ieixy2mqrJwM5yUJlg90BBYuU0+uJwUhXBs1aSv4oUBCSuYclRWFz/4+Yu25TVeoZ 4fmBdEvwYdKefUtvIa4Dx3Lvu+/HoogXlMahwKANujijPEW8Grv0njpHWWa3yP4vjwWo LsLjfQE2Td4lR8sjVKiYIOgnwm/h3Wsjo5JmQXxvq7a90WuL5uifQfpy2D19n0hgdmHm AZ5A== X-Gm-Message-State: APt69E1HyxsbQX1lpfIzpcG2dZqzwJBZE8IH+U7pPy8+X/JX1880BVtc bdpRhp5It9fQC4l8Edke2HPxvKzWyMgByIkL5EOXOQ== X-Received: by 2002:adf:8062:: with SMTP id 89-v6mr6838772wrk.221.1529943107623; Mon, 25 Jun 2018 09:11:47 -0700 (PDT) MIME-Version: 1.0 References: <20180625155750.GA14306@jordon-HP-15-Notebook-PC> In-Reply-To: <20180625155750.GA14306@jordon-HP-15-Notebook-PC> From: Andy Lutomirski Date: Mon, 25 Jun 2018 09:11:36 -0700 Message-ID: Subject: Re: [PATCH] x86/vdso: Change return type to vm_fault_t for fault handlers To: jrdr.linux@gmail.com Cc: Matthew Wilcox , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , LKML , brajeswar.linux@gmail.com, sabyasachi.linux@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 8:55 AM 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. Whoa there.. Your commit message makes it sound like you're just changing the return type, but: > if (tsc_pg && vclock_was_used(VCLOCK_HVCLOCK)) > - ret = vm_insert_pfn(vma, vmf->address, > + ret = vmf_insert_pfn(vma, vmf->address, > vmalloc_to_pfn(tsc_pg)); > } > > - if (ret == 0 || ret == -EBUSY) > - return VM_FAULT_NOPAGE; > - > - return VM_FAULT_SIGBUS; > + return ret; You're refactoring the code, too. Please fix your changelog.