Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/fsl_uli1575: Mark uli_exclude_device() as static

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 <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230409000812.18904-9-pali@kernel.org

authored by

Pali Rohár and committed by
Michael Ellerman
3ce27143 40b221da

+1 -4
-3
arch/powerpc/include/asm/ppc-pci.h
··· 58 58 #endif /* CONFIG_EEH */ 59 59 60 60 #ifdef CONFIG_FSL_ULI1575 61 - int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn); 62 61 void __init uli_init(void); 63 62 #endif /* CONFIG_FSL_ULI1575 */ 64 63 ··· 68 69 #endif /* !CONFIG_PCI */ 69 70 70 71 #if !defined(CONFIG_PCI) || !defined(CONFIG_FSL_ULI1575) 71 - #include <linux/pci.h> 72 - static inline int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) { return PCIBIOS_SUCCESSFUL; } 73 72 static inline void __init uli_init(void) {} 74 73 #endif /* !defined(CONFIG_PCI) || !defined(CONFIG_FSL_ULI1575) */ 75 74
+1 -1
arch/powerpc/platforms/fsl_uli1575.c
··· 344 344 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, 0x5229, hpcd_quirk_uli5229); 345 345 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, 0x5288, hpcd_final_uli5288); 346 346 347 - int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) 347 + static int uli_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) 348 348 { 349 349 if (hose->dn == fsl_pci_primary && bus == (hose->first_busno + 2)) { 350 350 /* exclude Modem controller */