diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-03 08:27:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-03 12:15:12 -0800 |
commit | 5f66dd35b49ea81a03e71bfd74c28364f4e32d21 (patch) | |
tree | 0d4989b00ba4976852f57bac51ca2d9b4eb13735 /arch/sparc/prom/bootstr_32.c | |
parent | 1f42be484ffc5559a29466c82adac7dd472d4439 (diff) | |
download | kernel_samsung_espresso10-5f66dd35b49ea81a03e71bfd74c28364f4e32d21.zip kernel_samsung_espresso10-5f66dd35b49ea81a03e71bfd74c28364f4e32d21.tar.gz kernel_samsung_espresso10-5f66dd35b49ea81a03e71bfd74c28364f4e32d21.tar.bz2 |
sparc: fix sparse warnings in arch/sparc/prom for 32 bit build
Fix following sparse warnings:
arch/sparc/prom/bootstr_32.c:32:35: warning: Using plain integer as NULL pointer
arch/sparc/prom/memory.c:61:13: warning: symbol 'prom_meminit' was not declared. Should it be static?
arch/sparc/prom/misc_32.c:74:1: error: symbol 'prom_halt' redeclared with different type (originally declared at arch/sparc/include/asm/oplib_32.h:67) - different modifiers
arch/sparc/prom/ranges.c:16:26: warning: symbol 'promlib_obio_ranges' was not declared. Should it be static?
arch/sparc/prom/ranges.c:17:5: warning: symbol 'num_obio_ranges' was not declared. Should it be static?
arch/sparc/prom/ranges.c:39:1: warning: symbol 'prom_adjust_ranges' was not declared. Should it be static?
arch/sparc/prom/ranges.c:69:13: warning: symbol 'prom_ranges_init' was not declared. Should it be static?
arch/sparc/prom/tree_32.c:286:22: warning: Using plain integer as NULL pointer
arch/sparc/prom/tree_32.c:286:38: warning: Using plain integer as NULL pointer
None of the warnings indicated any serious issues.
We are now sparse clean for 32 bit build in arch/sparc/prom.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/prom/bootstr_32.c')
-rw-r--r-- | arch/sparc/prom/bootstr_32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/prom/bootstr_32.c b/arch/sparc/prom/bootstr_32.c index 916831d..f5ec32e 100644 --- a/arch/sparc/prom/bootstr_32.c +++ b/arch/sparc/prom/bootstr_32.c @@ -29,7 +29,8 @@ prom_getbootargs(void) /* Start from 1 and go over fd(0,0,0)kernel */ for(iter = 1; iter < 8; iter++) { arg = (*(romvec->pv_v0bootargs))->argv[iter]; - if(arg == 0) break; + if (arg == NULL) + break; while(*arg != 0) { /* Leave place for space and null. */ if(cp >= barg_buf + BARG_LEN-2){ |