Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104137
b: refs/heads/master
c: 908f516
h: refs/heads/master
i:
  104135: ed30245
v: v3
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jul 18, 2008
1 parent 75ddca2 commit 02f28f5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 26 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: 50215d6511265d46ba14038640b16c5dd7731ff4
refs/heads/master: 908f5162ca59ed46a928e8416db159777d432e77
14 changes: 7 additions & 7 deletions trunk/arch/sparc64/kernel/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include <asm/fhc.h>
#include <asm/starfire.h>

struct linux_central *central_bus = NULL;
struct linux_fhc *fhc_list = NULL;
static struct linux_central *central_bus = NULL;
static struct linux_fhc *fhc_list = NULL;

#define IS_CENTRAL_FHC(__fhc) ((__fhc) == central_bus->child)

Expand Down Expand Up @@ -79,18 +79,18 @@ static void adjust_regs(struct linux_prom_registers *regp, int nregs,
}

/* Apply probed fhc ranges to registers passed, if no ranges return. */
void apply_fhc_ranges(struct linux_fhc *fhc,
struct linux_prom_registers *regs,
int nregs)
static void apply_fhc_ranges(struct linux_fhc *fhc,
struct linux_prom_registers *regs,
int nregs)
{
if (fhc->num_fhc_ranges)
adjust_regs(regs, nregs, fhc->fhc_ranges,
fhc->num_fhc_ranges);
}

/* Apply probed central ranges to registers passed, if no ranges return. */
void apply_central_ranges(struct linux_central *central,
struct linux_prom_registers *regs, int nregs)
static void apply_central_ranges(struct linux_central *central,
struct linux_prom_registers *regs, int nregs)
{
if (central->num_central_ranges)
adjust_regs(regs, nregs, central->central_ranges,
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static void ds_var_data(struct ds_info *dp,
struct ds_cap_state *cp,
void *buf, int len);

struct ds_cap_state ds_states_template[] = {
static struct ds_cap_state ds_states_template[] = {
{
.service_id = "md-update",
.data = md_update_data,
Expand Down
10 changes: 5 additions & 5 deletions trunk/arch/sparc64/kernel/pci_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ static struct irq_chip msi_irq = {
/* XXX affinity XXX */
};

int sparc64_setup_msi_irq(unsigned int *virt_irq_p,
struct pci_dev *pdev,
struct msi_desc *entry)
static int sparc64_setup_msi_irq(unsigned int *virt_irq_p,
struct pci_dev *pdev,
struct msi_desc *entry)
{
struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;
const struct sparc64_msiq_ops *ops = pbm->msi_ops;
Expand Down Expand Up @@ -179,8 +179,8 @@ int sparc64_setup_msi_irq(unsigned int *virt_irq_p,
return err;
}

void sparc64_teardown_msi_irq(unsigned int virt_irq,
struct pci_dev *pdev)
static void sparc64_teardown_msi_irq(unsigned int virt_irq,
struct pci_dev *pdev)
{
struct pci_pbm_info *pbm = pdev->dev.archdata.host_controller;
const struct sparc64_msiq_ops *ops = pbm->msi_ops;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/kernel/pci_sun4v.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ static void dma_4v_sync_sg_for_cpu(struct device *dev,
/* Nothing to do... */
}

const struct dma_ops sun4v_dma_ops = {
static const struct dma_ops sun4v_dma_ops = {
.alloc_coherent = dma_4v_alloc_coherent,
.free_coherent = dma_4v_free_coherent,
.map_single = dma_4v_map_single,
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/sparc64/kernel/sys_sparc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ int cp_compat_stat(struct kstat *stat, struct compat_stat __user *statbuf)
return err;
}

int cp_compat_stat64(struct kstat *stat, struct compat_stat64 __user *statbuf)
static int cp_compat_stat64(struct kstat *stat,
struct compat_stat64 __user *statbuf)
{
int err;

Expand Down
10 changes: 0 additions & 10 deletions trunk/include/asm-sparc64/fhc.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,4 @@ struct linux_fhc {
int num_fhc_ranges;
};

extern struct linux_central *central_bus;

extern void apply_central_ranges(struct linux_central *central,
struct linux_prom_registers *regs,
int nregs);

extern void apply_fhc_ranges(struct linux_fhc *fhc,
struct linux_prom_registers *regs,
int nregs);

#endif /* !(_SPARC64_FHC_H) */

0 comments on commit 02f28f5

Please sign in to comment.