Skip to content

Commit

Permalink
[SPARC64]: Fix section mismatch warnings in arch/sparc64/kernel/conso…
Browse files Browse the repository at this point in the history
…le.c

probe_other_fhcs() and central_probe() should be __init

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 7, 2007
1 parent 6a5b518 commit 23abc9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/sparc64/kernel/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void apply_central_ranges(struct linux_central *central,
central->num_central_ranges);
}

void * __init central_alloc_bootmem(unsigned long size)
static void * __init central_alloc_bootmem(unsigned long size)
{
void *ret;

Expand All @@ -116,7 +116,7 @@ static unsigned long prom_reg_to_paddr(struct linux_prom_registers *r)
return ret | (unsigned long) r->phys_addr;
}

static void probe_other_fhcs(void)
static void __init probe_other_fhcs(void)
{
struct device_node *dp;
const struct linux_prom64_registers *fpregs;
Expand Down Expand Up @@ -298,7 +298,7 @@ static void init_all_fhc_hw(void)

}

void central_probe(void)
void __init central_probe(void)
{
struct linux_prom_registers fpregs[6];
const struct linux_prom_registers *pr;
Expand Down

0 comments on commit 23abc9e

Please sign in to comment.