From patchwork Wed Mar 15 20:42:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 9626669 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 270566048C for ; Wed, 15 Mar 2017 20:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19561285E3 for ; Wed, 15 Mar 2017 20:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DD63285EF; Wed, 15 Mar 2017 20:59:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 80AF0285E3 for ; Wed, 15 Mar 2017 20:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Mime-Version:Date:To:From:Subject:Message-ID:Reply-To: 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-Owner; bh=sGpUQwTjAU0k0upEP8n0K4CB972PqvJBOc0ouZvJudk=; b=Igh EinEJkve6T2L4oASldrBexjIL8CmJa143oOEsw1HMrcdbfvOO3MAd8F4TndtppVFTr+cbDe0pu7f+ yYbARhSjT5Hse3uDRHdAaxn7MIgeqTii43zffE0CcVeA8sDU/XUCcIcbBsFzKsKlYXNHqQq4HfSjb wIGtlEFrmqZxAW3oVM814Ih++VWWtsyGgHPW4f+Hrm5LRwIadOPtG4Lo7lRDMEylwL++UFZJgjioA 3ymWLzTRjI9V/GzwX8j+C2hzEQfJI3//lObFKlcDtBKNBBei4rXP5eFRroo1FbJjytjGXA6Cgu1vB FckrrdK9FzdR7GLdbWJWRn6yqpOD1/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1coG1L-0001U3-3K; Wed, 15 Mar 2017 20:59:47 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coG1J-0001MT-22 for linux-arm-kernel@bombadil.infradead.org; Wed, 15 Mar 2017 20:59:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Mime-Version:Content-Type:Date:Cc:To: From:Subject:Message-ID:Sender:Reply-To: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=/x1qsQ6ENyiF0mDa4HQiU2+REA0SMa+Dp1IGFyPOxQk=; b=nPMGVZAMNvENPqYOE21X0qdQee LMnl4Pgvg8l9PUwXXiAbjMDBgZlRl/4/xmYXk8yTzvVJweZr/Ky1GcO1s/sSogCluUL3U5f18l+HD JwHxHVBL73tLpoFwsNI6QIUc5Q4wE1UTYAowM3a0m4scOK+qTQHF89vpX/hOmFxWQYBBteAAEVaua 4dslmrxyRAqsElr6hm9IVK55X3sWqWmtyuDuKLJFjJCEj93e1Uyqe8zg7l1SToGFLXUCv82tFgTPA 7TM4/Spps32kXj4pmxccbRKbzk+fwrh/i5JEpe6mSlh7lE4ytSfP7SsqunGD1ipTxj0EsgytUFUQ7 YY59VsjA==; Received: from i7.infradead.org ([90.155.92.213]) by casper.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1coFkl-0003oh-Qd; Wed, 15 Mar 2017 20:42:39 +0000 Message-ID: <1489610559.86622.22.camel@infradead.org> Subject: [PATCH v2 4/4] arm64: Do not expose PCI mmap through procfs From: David Woodhouse To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Wed, 15 Mar 2017 20:42:39 +0000 X-Mailer: Evolution 3.22.4 (3.22.4-2.fc25) Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Catalin Marinas , Will Deacon Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: David Woodhouse Signed-off-by: David Woodhouse --- We shouldn't do this bit. But you did ask... drivers/pci/proc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 5cd960c..233d549 100644 --- a/drivers/pci/proc.c +++ b/drivers/pci/proc.c @@ -17,6 +17,11 @@ static int proc_initialized; /* = 0 */ +#ifdef __aarch64__ +/* ARM64 wants to be special and not expose this through /proc like everyone else */ +#undef HAVE_PCI_MMAP +#endif + static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) { struct pci_dev *dev = PDE_DATA(file_inode(file));