]> 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>
Wed, 20 Feb 2013 02:14:29 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:39 +0000 (16:52 +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 f21a586442f7fbe55349cfb1feef31b4bbb43319..8571e4c1748965cda8ab45b40c3a0607f9281d7b 100644 (file)
@@ -5317,7 +5317,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;
 
        /*