]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc988f10c9f6d1149a6e9ca95779e89d046e72bd1
tree84c809fd5539306328c4b1f30399cd8c43c3cdbb
parent9d551ca9db1460e3dfdbb4cf015b56ec96cb222c
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