sparc32: fix sparse warnings in ioport.c
authorSam Ravnborg <sam@ravnborg.org>
Mon, 21 Apr 2014 19:39:27 +0000 (21:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Apr 2014 05:12:25 +0000 (01:12 -0400)
commitc31f76518e3b3d755a24db43e556869cafce6d64
tree84c809fd5539306328c4b1f30399cd8c43c3cdbb
parent529b17a9d3346b6e9063681e71748261342accbc
sparc32: fix sparse warnings in ioport.c

Fix following warnings:
ioport.c:189:38: warning: Using plain integer as NULL pointer
ioport.c:78:25: warning: symbol 'sparc_iomap' was not declared. Should it be static?
ioport.c:403:20: warning: symbol 'sbus_dma_ops' was not declared. Should it be static?
ioport.c:684:39: warning: Using plain integer as NULL pointer

Add one missing prototype, and use NULL.
sbus_dma_ops declared static.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/pgalloc_32.h
arch/sparc/kernel/ioport.c