sparc32: fix sparse warnings in sun4m_irq.c and sun4d_irq.c
Fix following warnings: sun4m_irq.c:308:6: warning: symbol 'sun4m_nmi' was not declared. Should it be static? sun4m_irq.c:396:28: warning: incorrect type in assignment (different address spaces) sun4m_irq.c:396:28: expected unsigned int volatile *extern [addressable] [toplevel] master_l10_counter sun4d_irq.c:469:28: warning: incorrect type in assignment (different address spaces) sun4d_irq.c:469:28: expected unsigned int volatile *extern [addressable] [toplevel] master_l10_counter master_l10_counter is a pointer to __iomem - add annotations. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fcd0196b7e
commit
2b399177dc
4 changed files with 8 additions and 4 deletions
|
@ -32,7 +32,7 @@ struct leon3_gptimer_regs_map *leon3_gptimer_regs; /* timer controller base addr
|
|||
|
||||
int leondebug_irq_disable;
|
||||
int leon_debug_irqout;
|
||||
static int dummy_master_l10_counter;
|
||||
static volatile unsigned int dummy_master_l10_counter;
|
||||
unsigned long amba_system_id;
|
||||
static DEFINE_SPINLOCK(leon_irq_lock);
|
||||
|
||||
|
@ -313,7 +313,8 @@ void __init leon_init_timers(void)
|
|||
|
||||
leondebug_irq_disable = 0;
|
||||
leon_debug_irqout = 0;
|
||||
master_l10_counter = (unsigned int *)&dummy_master_l10_counter;
|
||||
master_l10_counter =
|
||||
(unsigned int __iomem *)&dummy_master_l10_counter;
|
||||
dummy_master_l10_counter = 0;
|
||||
|
||||
rootnp = of_find_node_by_path("/ambapp0");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue