Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5068060imu; Tue, 8 Jan 2019 10:56:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7gOGaebODQlDcghCT7NXUSFERSAX/jvRP7KpQJjYDRjfgOv8iIw7nEfrXyTdu49SeeqCKV X-Received: by 2002:a63:d818:: with SMTP id b24mr2509769pgh.174.1546973761988; Tue, 08 Jan 2019 10:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546973761; cv=none; d=google.com; s=arc-20160816; b=LZTaAKirYAhs3qiSH6rHy8kWFnihAWHx1RWuIzTfBlh8iWpZ7pPPll3DVZfpN6g2O6 JGR7kemzmnlO35QbhkGLiIczBX5OzSK8Tk4C1xmcRvvFD7j5y8Fd38/mYvyoTPpSAceQ pi8NchiWiwpcOVTwvm5yMuK2tRQs1Arwtr85274HwaD/BctVpesqT0ADek3NOGsbUCsV 4M1DNM3QzdYZRKZZhM+ixAB4AEY2P4c5Wkb9acy3AmpWCKY5LQ7DqOxwVtAhUS7zxOdI kJgqKdxh1k3SDMLNvB6ju+vQcpCjWZEcvFwY7qOC+GY4qh9Ptky9M0CxVusVdWChBTb+ XlcA== 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=Nlfj27VUloOq8RjKt9xLwgFPnK/hHgjvHVmhDJLArlg=; b=n5I4ib2bhmymMllF2G63e+rYFX0R1wNkwgybqzzCismcbUp9Yp7S7/C7Z8NBIz8yi9 8ZJrl/HqMEAcd76sbn96x/1IpiSTBpoDchyFAz9Ocl5EJ2JeH/emIABdetDEzLCpBBd7 tCwnc0ODocFCvuQmHyp2N8k7YW/EurIMRrjuWTNFpaZUjtjdaw9aIs/V/QIEQ2gEZoyC bwKfiOUYkkB18/G/uPBUO2xYcamVMy4q/vE7qZd/os46VU/3l6jpUbzJ3pmO1YjO19Gy +2AQhgfi7kDK7rjl9PcmlwAsg3xlcqKxIXysO/x6s9SN71MV8pAR6v5p0YCZVHCP06wS pxBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BkqR4ZCE; 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 m198si66304817pga.98.2019.01.08.10.55.46; Tue, 08 Jan 2019 10:56:01 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=BkqR4ZCE; 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 S1729430AbfAHSaG (ORCPT + 99 others); Tue, 8 Jan 2019 13:30:06 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:38632 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729277AbfAHSaG (ORCPT ); Tue, 8 Jan 2019 13:30:06 -0500 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=Nlfj27VUloOq8RjKt9xLwgFPnK/hHgjvHVmhDJLArlg=; b=BkqR4ZCEMnnWZ/vhRFhAoDqQ/ UeyPnm5DK6LH2MmGvBAGBUJdsbaPlDR7qFn/hqmsYqo8U/ZQt95C4Cs98Lx0mHk7nCjPXCH4iayij E2FC0EDi1nKVZGo/18Ih6tYn1A6q7c5zLAm8ui6sPGeLVIUV42PBUtberNI/ost5fV7mHwgzHIIQ5 pNo3iH398yiNvOETN9Fv+ldGfLi11gSI56iEzk1CqsiY7o9x5l5NQQx/AvtQ3OXstxTauKvc5G324 aVnPqLRUnOFSo0cJ3SWUpnAHsikuCEqnxxOvqgGzAURzCC35rOp15ySKDqaqCXa7VfHlVm2aypis8 TI3SHZSrw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggw8V-00080t-EG; Tue, 08 Jan 2019 18:29:59 +0000 Date: Tue, 8 Jan 2019 10:29:59 -0800 From: Matthew Wilcox To: Souptick Joarder Cc: akpm@linux-foundation.org, rppt@linux.ibm.com, mhocko@suse.com, dan.j.williams@intel.com, kirill.shutemov@linux.intel.com, vbabka@suse.cz, riel@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, william.kucharski@oracle.com Subject: Re: [PATCH v4] mm: Create the new vm_fault_t type Message-ID: <20190108182959.GD6310@bombadil.infradead.org> References: <20190108183041.GA12137@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190108183041.GA12137@jordon-HP-15-Notebook-PC> 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 Wed, Jan 09, 2019 at 12:00:41AM +0530, Souptick Joarder wrote: > Page fault handlers are supposed to return VM_FAULT codes, > but some drivers/file systems mistakenly return error > numbers. Now that all drivers/file systems have been converted > to use the vm_fault_t return type, change the type definition > to no longer be compatible with 'int'. By making it an unsigned > int, the function prototype becomes incompatible with a function > which returns int. Sparse will detect any attempts to return a > value which is not a VM_FAULT code. > > VM_FAULT_SET_HINDEX and VM_FAULT_GET_HINDEX values are changed > to avoid conflict with other VM_FAULT codes. > > Signed-off-by: Souptick Joarder > Reviewed-by: William Kucharski > Reviewed-by: Mike Rapoport Reviewed-by: Matthew Wilcox