aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/setup.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-09-05 09:08:44 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-05 09:11:24 -0400
commit09d9bae064724635df3920bcca47e077cfb23e76 (patch)
treea42fa183dbdbd69854866c0b1f0169f0286b45d4 /arch/arm/kernel/setup.c
parent22acc4e65043d436bc286e6059960fa533e37356 (diff)
[ARM] sparse: fix several warnings
arch/arm/kernel/process.c:270:6: warning: symbol 'show_fpregs' was not declared. Should it be static? This function isn't used, so can be removed. arch/arm/kernel/setup.c:532:9: warning: symbol 'len' shadows an earlier one arch/arm/kernel/setup.c:524:6: originally declared here A function containing two 'len's. arch/arm/mm/fault-armv.c:188:13: warning: symbol 'check_writebuffer_bugs' was not declared. Should it be static? arch/arm/mm/mmap.c:122:5: warning: symbol 'valid_phys_addr_range' was not declared. Should it be static? arch/arm/mm/mmap.c:137:5: warning: symbol 'valid_mmap_phys_addr_range' was not declared. Should it be static? Missing includes. arch/arm/kernel/traps.c:71:77: warning: Using plain integer as NULL pointer arch/arm/mm/ioremap.c:355:46: error: incompatible types in comparison expression (different address spaces) Sillies. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/setup.c')
-rw-r--r--arch/arm/kernel/setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index e90422d374af..67d20e9a7451 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -529,12 +529,12 @@ static void __init parse_cmdline(char **cmdline_p, char *from)
529 struct early_params *p; 529 struct early_params *p;
530 530
531 for (p = &__early_begin; p < &__early_end; p++) { 531 for (p = &__early_begin; p < &__early_end; p++) {
532 int len = strlen(p->arg); 532 int arglen = strlen(p->arg);
533 533
534 if (memcmp(from, p->arg, len) == 0) { 534 if (memcmp(from, p->arg, arglen) == 0) {
535 if (to != command_line) 535 if (to != command_line)
536 to -= 1; 536 to -= 1;
537 from += len; 537 from += arglen;
538 p->fn(&from); 538 p->fn(&from);
539 539
540 while (*from != ' ' && *from != '\0') 540 while (*from != ' ' && *from != '\0')