Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1555195imm; Tue, 15 May 2018 22:51:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrjXCFBwCVvZ1ygsdSm04vHLo0dISKR4AnDdwO8odQiFvV+pgPOM8C7kfvtQ8A+4zeHs+NQ X-Received: by 2002:a63:955e:: with SMTP id t30-v6mr14480263pgn.77.1526449902489; Tue, 15 May 2018 22:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526449902; cv=none; d=google.com; s=arc-20160816; b=mtH3RofYh2F1uH27PyfaD3CtyH00r1yDGoWb4w2QvfZUy3FEIwX3zRtY7k8K5Z3pK2 beo2xPgVdgHmFAhYH3aE/OkAcfv9cR8+u54ohsVNG/JAx98nsIoJGbzT1cI5mHqzaD3m xkPU1oY4UtflWlJO3PMPvW+weA65PvNr4E9UWq8kk1USzeQBiJ4ypLL3xwOY30s7sOes a5sbdSf9KYSDvoB7VRwT/QZN1cCNVCpXaDzlQ5iplZ0aQSzGfsxm/hcEz9j9QuZSUrzR G2PAaPlMguleYPNwaenx5FlMlox2EGjRk1biZks8qJ+rg3h2EYcHx7zUoafXPQhVTuBj tQ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=HYuhZvdp4FYk/eAANs5giZqaM76A544pKuUWpyxsLu4=; b=LdKASVaVt/l0bQJvxACBgKUJgtTQHwoG+NgVcWaCLRTWZxqN/QsMgDivf2tKuB79bS M7ufnFSuCT8ktLLDBYmV3ofU5XqEfzy5b5p+PuANDJsr3V0B8mXBJi2s0ZHqHJcoSvrA ystYDAZ0lRAtQ/N5elR5+tLaZZvWOFBq6/mIdJ61uGsEv5AK1fyy5GmbDgpHT4aBGcIJ rIp9Vj2+hiKZggWRsxPxZ0X1BUnAwhq7g5hJbL5exWDs7GNxtFahYP7Y/TDAgMoJD2Fw WQ4fRqyWtnFKu2XkrsfVE4xmkVm7/zhIucn3VbB95lbp8vTVgFylc+dQ1j7cRBbmcbjb h+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mS0+DJY4; 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 b3-v6si1484197pgt.629.2018.05.15.22.51.28; Tue, 15 May 2018 22:51:42 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=mS0+DJY4; 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 S1752133AbeEPFn4 (ORCPT + 99 others); Wed, 16 May 2018 01:43:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56460 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbeEPFny (ORCPT ); Wed, 16 May 2018 01:43:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HYuhZvdp4FYk/eAANs5giZqaM76A544pKuUWpyxsLu4=; b=mS0+DJY461G5X1X7uIkgKQcGP QqAVIC4ZxA2+yajehiA9DBM3Tih8m/7pe+pqFsDa9REoMnWoErJ+UnoHTx5dDXsqXfY3ttc+IwkOk Dm91HK+22nPHQkMvAN7FIe3iIDg3o40SL+A5GWtBWU/0DtEJbtCn9kchFPo4XE/NwgIeV5WgBOL4B /fKL0rRK0nyonpfZV2tobWpsXEv8R7sLbpyI7HVSNl9lo4CclNRpCA9Ql5onxIfsqtDJjz15XKTN8 hhhbJFpyEoRDtMezHeGjFfbu0auwBCneMCcaGLY9/FJ7AlrE25OQF1O+waBcfmAVNsMQOrkm9LIcm kAENS7lcw==; Received: from [93.83.86.253] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIpE7-0007yT-8C; Wed, 16 May 2018 05:43:51 +0000 From: Christoph Hellwig To: Souptick Joarder , Matthew Wilcox Cc: 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: vm_fault_t conversion, for real Date: Wed, 16 May 2018 07:43:34 +0200 Message-Id: <20180516054348.15950-1-hch@lst.de> X-Mailer: git-send-email 2.17.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series tries to actually turn vm_fault_t into a type that can be typechecked and checks the fallout instead of sprinkling random annotations without context. The first one fixes a real bug in orangefs, the second and third fix mismatched existing vm_fault_t annotations on the same function, the fourth removes an unused export that was in the chain. The remainder until the last one do some not quite trivial conversions, and the last one does the trivial mass annotation and flips vm_fault_t to a __bitwise unsigned int - the unsigned means we also get plain compiler type checking for the new ->fault signature even without sparse. This has survived an x86 allyesconfig build, and got a SUCCESS from the buildbot that I don't really trust - I'm pretty sure there are bits and pieces hiding in other architectures that it hasn't caught up to. The sparse annotations are manuall verified for the core MM code and a few other interesting bits (e.g. DAX and the x86 fault code) The series is against linux-next as of 2018/05/15 to make sure any annotations in subsystem trees are picked up.