Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3735025yba; Tue, 23 Apr 2019 08:46:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRaiQ/Lp1bHim7QhfaHTFuCSFHLlQ/gAzfRYSbmsNClHEzVsoYV5o1H38OCtQcOHCyOdeT X-Received: by 2002:a65:6202:: with SMTP id d2mr25403031pgv.176.1556034362807; Tue, 23 Apr 2019 08:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556034362; cv=none; d=google.com; s=arc-20160816; b=MHPP1v76I++qGnvvbfX3DE0XfL7S2BMczPVcOOMjk8wxTUHd78+mUJJcAtmp3/EEDq Gt/e/uNANeuTpdxjq2x/BI5IjJuxhANsHpIeYfAk5sL/ujbjzsiXSvcA3yEBsPvMJkzk phmbPLbtWDHS3rCCHVzoaM0cfEfm7Im++0Kw8WsWZM/ZtFOMbsv2Ar0JV5l6toNt9bhm gpEUPoPLihCwcdsQB5BhgAaLMkZTGG10bwOvBFb5oxov/OT35QkX7hRz152zlgaKBW4P SehQfxA5SZKjE3uh3jPf+4o5karDdlLAs41YZKrKzh4PZB5aVflzmJXYxFjCFG/nmQgj A7DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+K0qQkMPhyOnz59Oaseee2QX30i0QPa2TDYTaUA1ZuA=; b=KnluldIZQJrn0UNKravLgIH6KcpMKRFUwLCsbScDpi1Wgyo/zkS1a4RSQgRicxs+D3 UntrfVdOc5xduuniuNW5lfZfpOKaKv5rYJr8DZXG7GXGIFs/muDQop18l+V0cgmNxjjw KX6GBxQavc9yL+ixoIudm226PLkOy2TaD0L6ZWsIHtd78RLqrIujPOe0R2h1PnAXaT1L 9mkb5J9PVirybX/nNQUcriAeJQUYznOxISue9VmxnT+Vb/29rq/tianAMtwk48mAdESZ 70Sf+yLlJ30fV4gfpD2tNi3inPfFAYwV+9TUXHHR9FRotX0+zlQxbd5FPuL0SgXoVNVn Hw1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=NEIbYExU; 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 u37si15783281pga.301.2019.04.23.08.45.46; Tue, 23 Apr 2019 08:46:02 -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=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=NEIbYExU; 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 S1728459AbfDWPo3 (ORCPT + 99 others); Tue, 23 Apr 2019 11:44:29 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42426 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728406AbfDWPo2 (ORCPT ); Tue, 23 Apr 2019 11:44:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WDEv88QESu3Sjr0dtUvh/asa7Lnwdk5HgQ8xFvHFf1s=; b=NEIbYExUOdJSpXZo0hWf9PcwX cdWgbFsV6XJ/EHnkl5wNVhMfOBhgqbgPdSVRScg53O8Vzes9HZOz/vHUQpgmInss9I4bDbNkqirZ0 QHSGbTmREhQuNrr4WrnrO9kL2jCb15Gldw9AzKRuyIyseN2CwsInRjZb6wgz/QtW1eD1jT/TVhmA2 SeWDL9iLfmeFAqhCU+9lb3OhO7VgTMjRnXFyCAYNYqwv4Uf6X8pwRT4X8T+5W8Qrifdi7o5wfWFhV 51hneWv26L363YOBTiVNMxsIKVij/5698Nc11FBfFLAPWMGpRwMhMJDdX9GuufyxdewnwVDmVnNbb EIjplXgPA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1hIxaJ-0001JO-98; Tue, 23 Apr 2019 15:43:51 +0000 Date: Tue, 23 Apr 2019 08:43:51 -0700 From: Matthew Wilcox To: Laurent Dufour Cc: akpm@linux-foundation.org, mhocko@kernel.org, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, dave@stgolabs.net, jack@suse.cz, aneesh.kumar@linux.ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , sergey.senozhatsky.work@gmail.com, Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, Daniel Jordan , David Rientjes , Jerome Glisse , Ganesh Mahendran , Minchan Kim , Punit Agrawal , vinayak menon , Yang Shi , zhong jiang , Haiyan Song , Balbir Singh , sj38.park@gmail.com, Michel Lespinasse , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, npiggin@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org Subject: Re: [PATCH v12 07/31] mm: make pte_unmap_same compatible with SPF Message-ID: <20190423154351.GB19031@bombadil.infradead.org> References: <20190416134522.17540-1-ldufour@linux.ibm.com> <20190416134522.17540-8-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416134522.17540-8-ldufour@linux.ibm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 03:44:58PM +0200, Laurent Dufour wrote: > +static inline vm_fault_t pte_unmap_same(struct vm_fault *vmf) > { > - int same = 1; > + int ret = 0; Surely 'ret' should be of type vm_fault_t? > + ret = VM_FAULT_RETRY; ... this should have thrown a sparse warning?