From c0d6762d395782dd1308dcd4a16b019de3f9bad6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:29 +1100 Subject: [PATCH] acpi-memory-hotplug-support-getting-hotplug-info-from-srat-fix 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 Signed-off-by: Andrew Morton --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f21a586442f7..8571e4c17489 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -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; /* -- 2.39.5