diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5ef7185a5e05..fab4ece7c4c9 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6858,7 +6858,7 @@ void __init mem_init_print_info(const char *str) */ #define adj_init_size(start, end, size, pos, adj) \ do { \ - if (start <= pos && pos < end && size > adj) \ + if (&start[0] <= &pos[0] && &pos[0] < &end[0] && size > adj) \ size -= adj; \ } while (0)