sparc32: fix sparse warnings in leon_kernel.c
Fix following warnings: leon_kernel.c:40:15: warning: symbol 'leon3_gptimer_idx' was not declared. Should it be static? leon_kernel.c:68:6: warning: symbol 'leon_eirq_setup' was not declared. Should it be static? leon_kernel.c:273:13: warning: symbol 'leon_percpu_timer_ce_interrupt' was not declared. Should it be static? Define symbols as static. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
985edb5b16
commit
4007b65a93
@@ -36,8 +36,8 @@ static volatile unsigned int dummy_master_l10_counter;
|
|||||||
unsigned long amba_system_id;
|
unsigned long amba_system_id;
|
||||||
static DEFINE_SPINLOCK(leon_irq_lock);
|
static DEFINE_SPINLOCK(leon_irq_lock);
|
||||||
|
|
||||||
|
static unsigned long leon3_gptimer_idx; /* Timer Index (0..6) within Timer Core */
|
||||||
unsigned long leon3_gptimer_irq; /* interrupt controller irq number */
|
unsigned long leon3_gptimer_irq; /* interrupt controller irq number */
|
||||||
unsigned long leon3_gptimer_idx; /* Timer Index (0..6) within Timer Core */
|
|
||||||
unsigned int sparc_leon_eirq;
|
unsigned int sparc_leon_eirq;
|
||||||
#define LEON_IMASK(cpu) (&leon3_irqctrl_regs->mask[cpu])
|
#define LEON_IMASK(cpu) (&leon3_irqctrl_regs->mask[cpu])
|
||||||
#define LEON_IACK (&leon3_irqctrl_regs->iclear)
|
#define LEON_IACK (&leon3_irqctrl_regs->iclear)
|
||||||
@@ -65,7 +65,7 @@ static void leon_handle_ext_irq(unsigned int irq, struct irq_desc *desc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* The extended IRQ controller has been found, this function registers it */
|
/* The extended IRQ controller has been found, this function registers it */
|
||||||
void leon_eirq_setup(unsigned int eirq)
|
static void leon_eirq_setup(unsigned int eirq)
|
||||||
{
|
{
|
||||||
unsigned long mask, oldmask;
|
unsigned long mask, oldmask;
|
||||||
unsigned int veirq;
|
unsigned int veirq;
|
||||||
@@ -270,7 +270,7 @@ static u32 leon_cycles_offset(void)
|
|||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
||||||
/* smp clockevent irq */
|
/* smp clockevent irq */
|
||||||
irqreturn_t leon_percpu_timer_ce_interrupt(int irq, void *unused)
|
static irqreturn_t leon_percpu_timer_ce_interrupt(int irq, void *unused)
|
||||||
{
|
{
|
||||||
struct clock_event_device *ce;
|
struct clock_event_device *ce;
|
||||||
int cpu = smp_processor_id();
|
int cpu = smp_processor_id();
|
||||||
|
|||||||
Reference in New Issue
Block a user