Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp451826ybx; Wed, 30 Oct 2019 18:09:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZnd1NANRnQrHlgHVn2EAZAwRG6kFg0q7SPMbl7rReipE7lKlkK41pKw64hm+f73X7tJe/ X-Received: by 2002:a17:907:1102:: with SMTP id qu2mr1200155ejb.300.1572484162398; Wed, 30 Oct 2019 18:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572484162; cv=none; d=google.com; s=arc-20160816; b=Ijh1uJJSU3Y7KqM8FIw90xAP/5raAsKXVGo7xtL+lxyBpcGBlDTXaZVbIAmnQThQaV PVZkUFI9y5fcfrIuuzUZaFRZGbdqptSN9rYe0dr/kQjiMkvIwW3FoP8Qh3LdrC/f1VwV bV+Cqux0IU5sslpLiRa7/HLV+HdFAlMRSiDK+GbIDPjodF/smZBIXYSVDobaRW01pr59 lWHQZAdUtUD0t5dCPhSSe88hEfpESv59ap5GJxMb0LYQ2DLolqfAyUStxCrwbtQvthKU M9Hx2ICMAQoakf/rYL3V3g1iqpQ5lbfS4DbVZgl+0l6dCVnLpv2GkCRHl58224FtjBVh y8Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tDHh+OVXKEM0h+uKC7EIERstcizYBjZxP2HUDdfEVt8=; b=E+9/0u6Js5234ZpsrQkC9pArR290bj71BtDDrOKFlo3wxgpQzaNTyeDekdLY3Vu5ps NdxB4Sg45xoh+WE7J3Wu1B9ABSKG+yY08bGuJjk4blvs9z2afhHBiG5ABXlPIAMNodWx J/Y139HwIVQeWkcVtegGPNAyHI8ZpOvjNJgC4WtsyXTfx0cT312jmURBfWaxf6w/zyUC kPYEwRHFCWBirhQinx58YkPkrToT1YnwEbYg125mR50auYvVWqThLQpPkicaWU2rW/vm 7S3LOoDJV2tlKbYkJbBCvKUzsHjGBnWQ7ajyKBHEoTr7AUhu3i4Pt5fX30U0NfGBq1hY hdfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="Dn8/QAVb"; 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 i24si2371972ejh.35.2019.10.30.18.08.58; Wed, 30 Oct 2019 18:09:22 -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=pass header.i=@rasmusvillemoes.dk header.s=google header.b="Dn8/QAVb"; 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 S1728032AbfJaAcK (ORCPT + 99 others); Wed, 30 Oct 2019 20:32:10 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50435 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727477AbfJaAcG (ORCPT ); Wed, 30 Oct 2019 20:32:06 -0400 Received: by mail-wm1-f66.google.com with SMTP id 11so4088874wmk.0 for ; Wed, 30 Oct 2019 17:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tDHh+OVXKEM0h+uKC7EIERstcizYBjZxP2HUDdfEVt8=; b=Dn8/QAVbq0JfM6dbr7uT/LDSjMsuYs4CxFf+CS82fAkPePNSAGzb5Y0MnIf2ipZiHx POfZhnEE3UHOkJ9d/P4volBMryXP1/aujGfSYCD7vqeNMrU++oR+psgTkC/v689cAwcu FJP2RLuVzWiYM8UlzeEvwu9SX0Et8qvWQXB88= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tDHh+OVXKEM0h+uKC7EIERstcizYBjZxP2HUDdfEVt8=; b=VucYJSHPl5td+kvz0RV1ShNzSD/sgt98CXJrJ5IUuYY2OJx09WUkG7C/A/V0GluBpo zqQFU4TsbuSQmUGgijO4OM7LtXVlX8oky010NkcWhhemSK1GlfsFo8DW3OyQDZEGOKUk H3KRDBFTMnm0jjXRW4cyTfIkkJR53D8hiVjP2+sRJl3+xT8RCEBdkDVVFTLnc9k8zb45 xhkdAWFVSqNveYhxLW/Jd7zsW6pcxB3w+4qarjeNgP66Voy0sOJ22LrZfXE9gIypAVXC VdhYphLFvlBh0gzNGJkJnZf7jTw9OGw2jZZzSmV51JKUQOVCN1scP25KXoApEpQFViUI GhMA== X-Gm-Message-State: APjAAAVjgJ8gQ1YDmA47bF4iA/BR14O80xmbKGajCeWVwHcIiy5gT3TQ pMbXpwzA8pRQ6W9qUDvy14Tq2g== X-Received: by 2002:a7b:c01a:: with SMTP id c26mr2165585wmb.45.1572481924905; Wed, 30 Oct 2019 17:32:04 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-115-54.cgn.fibianet.dk. [5.186.115.54]) by smtp.gmail.com with ESMTPSA id r13sm2357111wra.74.2019.10.30.17.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 17:32:04 -0700 (PDT) From: Rasmus Villemoes To: linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Christophe Leroy , Arnd Bergmann , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-kernel@vger.kernel.org, Rasmus Villemoes Subject: [RFC PATCH 4/5] powerpc: make pcibios_vaddr_is_ioport() static Date: Thu, 31 Oct 2019 01:31:53 +0100 Message-Id: <20191031003154.21969-5-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191031003154.21969-1-linux@rasmusvillemoes.dk> References: <20191031003154.21969-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only caller of pcibios_vaddr_is_ioport() is in pci-common.c, so we can make it static and move it into the same #ifndef block as its caller. Signed-off-by: Rasmus Villemoes --- arch/powerpc/include/asm/pci-bridge.h | 9 --------- arch/powerpc/kernel/pci-common.c | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h index ea6ec65970ef..deb29a1c9708 100644 --- a/arch/powerpc/include/asm/pci-bridge.h +++ b/arch/powerpc/include/asm/pci-bridge.h @@ -283,14 +283,5 @@ extern struct pci_controller *pcibios_alloc_controller(struct device_node *dev); extern void pcibios_free_controller(struct pci_controller *phb); extern void pcibios_free_controller_deferred(struct pci_host_bridge *bridge); -#ifdef CONFIG_PCI -extern int pcibios_vaddr_is_ioport(void __iomem *address); -#else -static inline int pcibios_vaddr_is_ioport(void __iomem *address) -{ - return 0; -} -#endif /* CONFIG_PCI */ - #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_PCI_BRIDGE_H */ diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index d89a2426b405..928d7576c6c2 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c @@ -277,7 +277,8 @@ static resource_size_t pcibios_io_size(const struct pci_controller *hose) #endif } -int pcibios_vaddr_is_ioport(void __iomem *address) +#ifndef CONFIG_PPC_INDIRECT_PIO +static int pcibios_vaddr_is_ioport(void __iomem *address) { int ret = 0; struct pci_controller *hose; @@ -296,7 +297,6 @@ int pcibios_vaddr_is_ioport(void __iomem *address) return ret; } -#ifndef CONFIG_PPC_INDIRECT_PIO void pci_iounmap(struct pci_dev *dev, void __iomem *addr) { if (isa_vaddr_is_ioport(addr)) -- 2.23.0