From patchwork Wed Mar 22 13:25:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Woodhouse X-Patchwork-Id: 9638855 X-Patchwork-Delegate: bhelgaas@google.com 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 3999960328 for ; Wed, 22 Mar 2017 13:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C5FB28415 for ; Wed, 22 Mar 2017 13:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2184C28460; Wed, 22 Mar 2017 13:31:13 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1057283F3 for ; Wed, 22 Mar 2017 13:31:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934245AbdCVNbK (ORCPT ); Wed, 22 Mar 2017 09:31:10 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:40351 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759812AbdCVNZe (ORCPT ); Wed, 22 Mar 2017 09:25:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:MIME-Version:Content-Type: 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=4J5Tmyk18dCxb0p2dlHuRQMZR0Bl/4TLEOPkZMZbe/M=; b=pElDKTgC7oTXirSSTt68Z5VFV yxsQLOyrzRnEmKeZcI3EcJvTzpCTaGeRgQ/wpFuIkUB1hHSG/ldUVS7Jm4YbHOiHSLt2RqqIye9nP jQaoxi3LyrtUHc2q09LkMW8n3JB+x6dYyigikJj9H1YNSRGmMfNqKCLW3inGDCjUsOioOM/biUfUy FR02IFOiSU9LjuLuyow5Ie5auV8/8XslmluKcFcnjjcRk3rctM1na2qpu3S8AZx0RD+egi+opx9Xp ZeuDXgtfv6j6pVf9dGYwKJQQEEIT1NEkpRHK6IAtB+4iGaHIhFLoX+yna3mxLOFB4XomZpKlOH2t4 SVb+iCtfQ==; Received: from i7.infradead.org ([90.155.92.213]) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1cqgGb-000725-2W; Wed, 22 Mar 2017 13:25:33 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.87 #1 (Red Hat Linux)) id 1cqgGZ-0005rZ-E8; Wed, 22 Mar 2017 13:25:31 +0000 From: David Woodhouse To: linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/17] arm64: Do not expose PCI mmap through procfs Date: Wed, 22 Mar 2017 13:25:31 +0000 Message-Id: <4281f8e01b9fc5628cbf4a5c77abd642801e23c7.1490188942.git.dwmw2@infradead.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: David Woodhouse Signed-off-by: David Woodhouse --- drivers/pci/proc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pci/proc.c b/drivers/pci/proc.c index 2d9cfa4..a940f4b 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));