提交 03f41f28 编写于 作者: B Bjorn Helgaas

alpha/PCI: Make pdev_save_srm_config() static

pdev_save_srm_config() and struct pdev_srm_saved_conf are only used in
arch/alpha/kernel/pci.c, so make them static there.
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: NIngo Molnar <mingo@kernel.org>
上级 7b30aa1f
...@@ -196,9 +196,16 @@ pcibios_init(void) ...@@ -196,9 +196,16 @@ pcibios_init(void)
subsys_initcall(pcibios_init); subsys_initcall(pcibios_init);
#ifdef ALPHA_RESTORE_SRM_SETUP #ifdef ALPHA_RESTORE_SRM_SETUP
/* Store PCI device configuration left by SRM here. */
struct pdev_srm_saved_conf
{
struct pdev_srm_saved_conf *next;
struct pci_dev *dev;
};
static struct pdev_srm_saved_conf *srm_saved_configs; static struct pdev_srm_saved_conf *srm_saved_configs;
void pdev_save_srm_config(struct pci_dev *dev) static void pdev_save_srm_config(struct pci_dev *dev)
{ {
struct pdev_srm_saved_conf *tmp; struct pdev_srm_saved_conf *tmp;
static int printed = 0; static int printed = 0;
...@@ -238,6 +245,8 @@ pci_restore_srm_config(void) ...@@ -238,6 +245,8 @@ pci_restore_srm_config(void)
pci_restore_state(tmp->dev); pci_restore_state(tmp->dev);
} }
} }
#else
#define pdev_save_srm_config(dev) do {} while (0)
#endif #endif
void pcibios_fixup_bus(struct pci_bus *bus) void pcibios_fixup_bus(struct pci_bus *bus)
......
...@@ -156,16 +156,8 @@ struct pci_iommu_arena ...@@ -156,16 +156,8 @@ struct pci_iommu_arena
#endif #endif
#ifdef ALPHA_RESTORE_SRM_SETUP #ifdef ALPHA_RESTORE_SRM_SETUP
/* Store PCI device configuration left by SRM here. */
struct pdev_srm_saved_conf
{
struct pdev_srm_saved_conf *next;
struct pci_dev *dev;
};
extern void pci_restore_srm_config(void); extern void pci_restore_srm_config(void);
#else #else
#define pdev_save_srm_config(dev) do {} while (0)
#define pci_restore_srm_config() do {} while (0) #define pci_restore_srm_config() do {} while (0)
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册