]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
acpi-memory-hotplug-support-getting-hotplug-info-from-srat-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:26:40 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:35 +0000 (16:46 +1100)
mm/page_alloc.c: In function 'cmdline_parse_movablemem_map':
mm/page_alloc.c:5372: warning: comparison of distinct pointer types lacks a cast

not the right fix, but I'm tired of the warning

Cc: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index ada77963e44b532960198f29a496f4401f4bfff3..be23c161ac192827d8038deaaf7100ff6089e72f 100644 (file)
@@ -5314,7 +5314,7 @@ static int __init cmdline_parse_movablemem_map(char *p)
        if (!p)
                goto err;
 
-       if (!strncmp(p, "acpi", max(4, strlen(p))))
+       if (!strncmp(p, "acpi", max_t(size_t, 4, strlen(p))))
                movablemem_map.acpi = true;
 
        /*