Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2174410rwl; Sat, 8 Apr 2023 09:08:35 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7HGzRRqd/jm834gnqrs2Gvu45n3NF0GTBS/hf5AJM4kiP9PuAwDp+qNu5AonJ1bHJOE7/ X-Received: by 2002:a05:6a20:6d22:b0:d5:2bf3:fd8e with SMTP id fv34-20020a056a206d2200b000d52bf3fd8emr6725795pzb.2.1680970115403; Sat, 08 Apr 2023 09:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680970115; cv=none; d=google.com; s=arc-20160816; b=vlhzJoX2CE1R4GHTQhohE9RxvEkQ7NiRUt4+kM4P6uou6kMtScS1bO8/G+0+Y4/dKW g2VydBXXjA460eMj7kdC3fwaHcbL9ElJ0xAlLSoHdTyz6h58JP4Ps5qaMJCVGW2iu5zl qpCNEXxkRELDdEbFzi8hrNdrTU4et1/i8qgXJqKVNwhE9zhh95Ju6sDqEuk6K66upFCZ qoluOo63w+4JBgGOrTG74ZXVfEc4XNDXLnk+3RvxpuB5KciLjaVWYEH6z2MrvAGmoy3F OycnvM2nl/mYdpfduCTK13FQsJ7weznyIoO89kHVE1Ui+bc9aINzfUeX4Pj4h99n7Zia cvxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sPN1KiKjct/447VW393O5jtxNcrtRTm801e+ldoLv/k=; b=j9LhpTofVDjbgQEvwsJMC7yWU5rMQaLJihTHgXz61sOMqEMEMBLYnMeFRipljW00CA jouVSF987cHN5vF+iLAefqKw0PSjCWvW5PESUutHqP62Znay2oUgyzB3nP+kDlnJL5Va spKvtKG8rW2SuPMvmuxZgBUqEQz4bBmV0Q5KRpBsa5IldOSBUbMVIbbi72p2rr557dEM 3vYcHAb70cGimhvt3qrCegrMAcWK1GhMmEkZhcmUBfIGotD8zPnrDdAaD6uiRdiz4LzC gKFpmKrf1Ffe1LlHhQvWRwmQ8uK/1eatmwv+cqBm/+0xkPq+vUWglf7dEva20i6i1vHB PSkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JrcbHqbb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a622507000000b005a8ef5a4becsi6257817pfl.311.2023.04.08.09.08.23; Sat, 08 Apr 2023 09:08:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JrcbHqbb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230183AbjDHPtl (ORCPT + 99 others); Sat, 8 Apr 2023 11:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjDHPtY (ORCPT ); Sat, 8 Apr 2023 11:49:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DAB5D301 for ; Sat, 8 Apr 2023 08:49:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D3B5615B4 for ; Sat, 8 Apr 2023 15:49:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B464C433A8; Sat, 8 Apr 2023 15:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680968961; bh=YEYW+9T4EI8T6uo7e4f/NgSgHv1w/SjKHzpBZaSdlx4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JrcbHqbbNxOyK2HY+wx1TAcSHuJKNfaXq3vpPuONPjWbum5slvVqFZbSjmM/tlM3n A3xrxVUIgZTB7+wua8CHoLiD4JY+lfvEuTPSa5dhkOqLsK02DaMhuYmIJAKF7uZ5vb AzXSpjAEGK0HyUn6M0J1OBBfvjbmFGsP1l/TQoaxPflF072BCdXrIeFMHRCGqlEjBX UATYMK5yJfYtPV047r8+yprg5+vNvkp4WCi48eI3ClzSnBYnWSNblfmeLPCXyKu+oV EHjehqE7PDsKUTFUQGcW/PWEwI1jHK7x2AAHzga5LMn86xL+JaofiVE9G+LyS1GqZW 9a/qibwMWUiHw== Received: by pali.im (Postfix) id 111382317; Sat, 8 Apr 2023 17:49:19 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Christophe Leroy , Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 8/8] powerpc/fsl_uli1575: Mark uli_exclude_device() as static Date: Sat, 8 Apr 2023 17:48:14 +0200 Message-Id: <20230408154814.10400-9-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230408154814.10400-1-pali@kernel.org> References: <20230408154814.10400-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Function uli_exclude_device() is not used outside of the fsl_uli1575.c source file anymore. So mark it as static and remove public prototype. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 3 --- arch/powerpc/platforms/fsl_uli1575.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/ppc-pci.h b/arch/powerpc/include/asm/ppc-pci.h index 0e393aeed912..d9fcff575027 100644 --- a/arch/powerpc/include/asm/ppc-pci.h +++ b/arch/powerpc/include/asm/ppc-pci.h @@ -58,7 +58,6 @@ void eeh_sysfs_remove_device(struct pci_dev *pdev); #endif /* CONFIG_EEH */ #ifdef CONFIG_FSL_ULI1575 -int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn); void __init uli_init(void); #endif /* CONFIG_FSL_ULI1575 */ @@ -69,8 +68,6 @@ static inline void init_pci_config_tokens(void) { } #endif /* !CONFIG_PCI */ #if !defined(CONFIG_PCI) || !defined(CONFIG_FSL_ULI1575) -#include -static inline int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) { return PCIBIOS_SUCCESSFUL; } static inline void __init uli_init(void) {} #endif /* !defined(CONFIG_PCI) || !defined(CONFIG_FSL_ULI1575) */ diff --git a/arch/powerpc/platforms/fsl_uli1575.c b/arch/powerpc/platforms/fsl_uli1575.c index b073db9d7c79..b8d37a9932f1 100644 --- a/arch/powerpc/platforms/fsl_uli1575.c +++ b/arch/powerpc/platforms/fsl_uli1575.c @@ -344,7 +344,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5288, hpcd_quirk_uli5288); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, hpcd_quirk_uli5229); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5288, hpcd_final_uli5288); -int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) +static int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) { if (hose->dn == fsl_pci_primary && bus == (hose->first_busno + 2)) { /* exclude Modem controller */ -- 2.20.1