diff options
author | Paul Mackerras <paulus@samba.org> | 2006-03-28 01:02:14 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 01:02:14 -0500 |
commit | facee873de8da5fe709c194f98eb0f2cc642a38c (patch) | |
tree | 03a27e962c2a7ce56b5f56b5b4c8cda9d6b14a7d /arch | |
parent | b239cbe957ae730caa8af2f169a4d35b8c1bb299 (diff) | |
parent | 10d713aef238b02a774766b2622027361630e28d (diff) |
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 14 | ||||
-rw-r--r-- | arch/ppc/lib/strcase.c | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 5a24415a2e3c..95d15eb5c03f 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -1030,25 +1030,13 @@ static int __init early_init_dt_scan_chosen(unsigned long node, | |||
1030 | 1030 | ||
1031 | if (strstr(cmd_line, "mem=")) { | 1031 | if (strstr(cmd_line, "mem=")) { |
1032 | char *p, *q; | 1032 | char *p, *q; |
1033 | unsigned long maxmem = 0; | ||
1034 | 1033 | ||
1035 | for (q = cmd_line; (p = strstr(q, "mem=")) != 0; ) { | 1034 | for (q = cmd_line; (p = strstr(q, "mem=")) != 0; ) { |
1036 | q = p + 4; | 1035 | q = p + 4; |
1037 | if (p > cmd_line && p[-1] != ' ') | 1036 | if (p > cmd_line && p[-1] != ' ') |
1038 | continue; | 1037 | continue; |
1039 | maxmem = simple_strtoul(q, &q, 0); | 1038 | memory_limit = memparse(q, &q); |
1040 | if (*q == 'k' || *q == 'K') { | ||
1041 | maxmem <<= 10; | ||
1042 | ++q; | ||
1043 | } else if (*q == 'm' || *q == 'M') { | ||
1044 | maxmem <<= 20; | ||
1045 | ++q; | ||
1046 | } else if (*q == 'g' || *q == 'G') { | ||
1047 | maxmem <<= 30; | ||
1048 | ++q; | ||
1049 | } | ||
1050 | } | 1039 | } |
1051 | memory_limit = maxmem; | ||
1052 | } | 1040 | } |
1053 | 1041 | ||
1054 | /* break now */ | 1042 | /* break now */ |
diff --git a/arch/ppc/lib/strcase.c b/arch/ppc/lib/strcase.c index 36b521091bbc..d98857890619 100644 --- a/arch/ppc/lib/strcase.c +++ b/arch/ppc/lib/strcase.c | |||
@@ -11,7 +11,7 @@ int strcasecmp(const char *s1, const char *s2) | |||
11 | return c1 - c2; | 11 | return c1 - c2; |
12 | } | 12 | } |
13 | 13 | ||
14 | int strncasecmp(const char *s1, const char *s2, int n) | 14 | int strncasecmp(const char *s1, const char *s2, size_t n) |
15 | { | 15 | { |
16 | int c1, c2; | 16 | int c1, c2; |
17 | 17 | ||