Message ID | 20211125130928.32465-1-sxwjean@me.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mm: page_alloc: Fix building error on -Werror=array-compare | expand |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index c5952749ad40..8f304c3d0e19 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -8170,7 +8170,7 @@ void __init mem_init_print_info(void) */ #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)