From patchwork Thu Jan 1 19:10:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5557681 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 10FAFBF6C3 for ; Thu, 1 Jan 2015 19:14:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3A7B520220 for ; Thu, 1 Jan 2015 19:14:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 635AB2021B for ; Thu, 1 Jan 2015 19:14:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y6l6Y-0001lM-3s; Thu, 01 Jan 2015 19:08:18 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y6l6U-0001k8-OD for linux-arm-kernel@lists.infradead.org; Thu, 01 Jan 2015 19:08:16 +0000 Received: by mail-wg0-f52.google.com with SMTP id x12so23274765wgg.11 for ; Thu, 01 Jan 2015 11:07:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EqunaLlLwQ1LsnqLDFiq3clkjzilNQzDMA6Pf86lSKo=; b=gdoo2kUtZql3CcdkcqzWN9/W/G0MlWTqXlolxq1b745Zy5Az/feR0nWK+onuMYfjet HiSxxLbStCGky6977A1PJMDytKwIMePjgFnrbyh4vuhYl7MXtWPOMN7FPv5GBQjyq0YL H5aqxAKAzU/WU3vUbE8wY6dWwe3xkiZ91J4k3hnEIa+9Zc0qiIYD5UndmHoSKC67RKxu LLVhJQand6XoRgeqzqgj/naC02VX4wTNeRcxL62h7XDFMHwKEd3B+gPx0cwRF42Ju8gZ PBOd1OpYMD3XwLZHP41GnLdSbqg4733WHo+6kHrUBgyXJ0H8YTz2kKtCOSG2J/Q9uFmM s5hA== X-Gm-Message-State: ALoCoQk+Y6tvS/0rtfKopXLzF/FLfMVm0kggOy69pA0Qun6NlndHRB32PbDX4BzgPqJPQvpE3MQu X-Received: by 10.180.103.201 with SMTP id fy9mr128250319wib.31.1420139270694; Thu, 01 Jan 2015 11:07:50 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id dv9sm51594371wib.14.2015.01.01.11.07.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 11:07:50 -0800 (PST) From: Rickard Strandqvist To: Russell King , Catalin Marinas Subject: [PATCH] arch: arm: mm: ioremap: Remove unused function Date: Thu, 1 Jan 2015 20:10:51 +0100 Message-Id: <1420139451-2671-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150101_110814_941462_8522407A X-CRM114-Status: GOOD ( 10.06 ) X-Spam-Score: -0.7 (/) Cc: Thomas Petazzoni , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rickard Strandqvist X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function pci_ioremap_set_mem_type() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/arm/include/asm/io.h | 6 ------ arch/arm/mm/ioremap.c | 5 ----- 2 files changed, 11 deletions(-) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 1805674..8d8087f 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -180,12 +180,6 @@ static inline void __iomem *__typesafe_io(unsigned long addr) #define PCI_IO_VIRT_BASE 0xfee00000 #define PCI_IOBASE ((void __iomem *)PCI_IO_VIRT_BASE) -#if defined(CONFIG_PCI) -void pci_ioremap_set_mem_type(int mem_type); -#else -static inline void pci_ioremap_set_mem_type(int mem_type) {} -#endif - extern int pci_ioremap_io(unsigned int offset, phys_addr_t phys_addr); /* diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index d1e5ad7..0f25610 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -440,11 +440,6 @@ EXPORT_SYMBOL(__arm_iounmap); #ifdef CONFIG_PCI static int pci_ioremap_mem_type = MT_DEVICE; -void pci_ioremap_set_mem_type(int mem_type) -{ - pci_ioremap_mem_type = mem_type; -} - int pci_ioremap_io(unsigned int offset, phys_addr_t phys_addr) { BUG_ON(offset + SZ_64K > IO_SPACE_LIMIT);