Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1966698imm; Wed, 16 May 2018 05:59:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqeGNApkFyjs6MhK40Yh3z6xCv3gqvLW0RSIRROiMz29yEm8zfBEJ7b3bsGcFejSZu9rC5F X-Received: by 2002:a17:902:8b85:: with SMTP id ay5-v6mr867864plb.30.1526475592236; Wed, 16 May 2018 05:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526475592; cv=none; d=google.com; s=arc-20160816; b=kTLCCKO0Miv4hFURQAIB20si5oBoHDeGSZbrr4PYAt4QvnCrm7tUVfViJ+qwWylLMp plM4Bkg2ew6kvzR7e57PqH/nGdhuFFNVoe8hTxXDA4CM7xzTZOyo28yOfle9kKQNd8rb tPNvnuxA+q/+nkVmdkeX+/xSF+rjQKa9429tcKEIDSDLCr4XCAHYbq4xKesv779GF2t1 DbZwHCLN2u76sNG8r+l1BzwCyg78XDSISxaw1BEGY8ciTWlMVXD4tZ7oqG7fcX5TMKeg wRfctolLBq9Z1uu3VAk8TemkhOcgdCdYHaalS6s4NyxLRXL+UxTWAJCewVCRZsKi6bkk hcoQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=Smah4TCF4Avx52+bKOzLB/N5G6sEbd8emB3haDByGL4=; b=y+2DueJanEZu/jumSZP5yl6WGH2skqj49uk8zne9fFon3JCwHptkrXiNbSaZMeH+V+ ywxpt6IEr99WexN+P/25Nfu53QQRacH2erMeZ78w8QSGdkDJKcSTFFjNajqvAlI+DyHN DPNmtvZblwOLebApOfM4z7YlWQnpj0wxrxBhKnrjaxjPIwy0SQ5Bx4hw4BHE/XCDQaAY zKXoUjSNOJaA6YtHUSdJ0TXdT/JhBg665GE7TID4LQZJQVlGh2garwVDFywlta2LX01f eSHYDuvTmld49E6KTq5FfWBMFUT0RO28vVvEE53hOdDRCBBzG3eoFIVCAnr5PSq9XwvT 6MCg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 87-v6si2624786pfo.137.2018.05.16.05.59.38; Wed, 16 May 2018 05:59:52 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752700AbeEPM7U (ORCPT + 99 others); Wed, 16 May 2018 08:59:20 -0400 Received: from verein.lst.de ([213.95.11.211]:47485 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752311AbeEPM7S (ORCPT ); Wed, 16 May 2018 08:59:18 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 4DBDD70928; Wed, 16 May 2018 15:03:44 +0200 (CEST) Date: Wed, 16 May 2018 15:03:44 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Souptick Joarder , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, devel@lists.orangefs.org, ceph-devel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, ocfs2-devel@oss.oracle.com, linux-mtd@lists.infradead.org, dri-devel@lists.freedesktop.org, lustre-devel@lists.lustre.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 14/14] mm: turn on vm_fault_t type checking Message-ID: <20180516130344.GC32454@lst.de> References: <20180516054348.15950-1-hch@lst.de> <20180516054348.15950-15-hch@lst.de> <20180516112813.GC20670@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180516112813.GC20670@bombadil.infradead.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 16, 2018 at 04:28:13AM -0700, Matthew Wilcox wrote: > On Wed, May 16, 2018 at 07:43:48AM +0200, Christoph Hellwig wrote: > > Switch vm_fault_t to point to an unsigned int with __bіtwise annotations. > > This both catches any old ->fault or ->page_mkwrite instance with plain > > compiler type checking, as well as finding more intricate problems with > > sparse. > > Come on, Christoph; you know better than this. This patch is completely > unreviewable. Split it into one patch per maintainer tree, and in any > event, the patch to convert vm_fault_t to an unsigned int should be > separated from all the trivial conversions. The whole point is that tiny split patches for mechnical translations are totally pointless. Switching the typedef might be worth splitting if people really insist.