Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113133
b: refs/heads/master
c: 77d10d0
h: refs/heads/master
i:
  113131: eda4603
v: v3
  • Loading branch information
David S. Miller committed Sep 12, 2008
1 parent 64b3fb8 commit 8fb3643
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21cd8833933ef20a0bbb368ea00876cbfc06141b
refs/heads/master: 77d10d0e63dcc4f961cb416447d64281300e5a01
14 changes: 6 additions & 8 deletions trunk/arch/sparc64/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ static void pci_parse_of_addrs(struct of_device *op,
}
}

struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
struct device_node *node,
struct pci_bus *bus, int devfn)
static struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
struct device_node *node,
struct pci_bus *bus, int devfn)
{
struct dev_archdata *sd;
struct of_device *op;
Expand Down Expand Up @@ -998,7 +998,7 @@ EXPORT_SYMBOL(pci_domain_nr);
int arch_setup_msi_irq(struct pci_dev *pdev, struct msi_desc *desc)
{
struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;
int virt_irq;
unsigned int virt_irq;

if (!pbm->setup_msi_irq)
return -EINVAL;
Expand All @@ -1012,10 +1012,8 @@ void arch_teardown_msi_irq(unsigned int virt_irq)
struct pci_dev *pdev = entry->dev;
struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;

if (!pbm->teardown_msi_irq)
return;

return pbm->teardown_msi_irq(virt_irq, pdev);
if (pbm->teardown_msi_irq)
pbm->teardown_msi_irq(virt_irq, pdev);
}
#endif /* !(CONFIG_PCI_MSI) */

Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/sparc64/kernel/pci_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,8 @@ extern void pci_config_write32(u32 *addr, u32 val);
extern struct pci_ops sun4u_pci_ops;
extern struct pci_ops sun4v_pci_ops;

extern volatile int pci_poke_in_progress;
extern volatile int pci_poke_cpu;
extern volatile int pci_poke_faulted;

#endif /* !(PCI_IMPL_H) */
5 changes: 1 addition & 4 deletions trunk/arch/sparc64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,7 @@ void sun4v_data_access_exception_tl1(struct pt_regs *regs, unsigned long addr, u
}

#ifdef CONFIG_PCI
/* This is really pathetic... */
extern volatile int pci_poke_in_progress;
extern volatile int pci_poke_cpu;
extern volatile int pci_poke_faulted;
#include "pci_impl.h"
#endif

/* When access exceptions happen, we must do this. */
Expand Down

0 comments on commit 8fb3643

Please sign in to comment.