From: Mateusz Nosek Date: Tue, 7 Apr 2020 03:08:36 +0000 (-0700) Subject: mm/mm_init.c: clean code. Use BUILD_BUG_ON when comparing compile time constant X-Git-Tag: microblaze-v5.10~1049^2~71 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=e46b893dd113253c2ff032aed22d9df404c5511d;p=linux-2.6-microblaze.git mm/mm_init.c: clean code. Use BUILD_BUG_ON when comparing compile time constant MAX_ZONELISTS is a compile time constant, so it should be compared using BUILD_BUG_ON not BUG_ON. Signed-off-by: Mateusz Nosek Signed-off-by: Andrew Morton Reviewed-by: Andrew Morton Reviewed-by: Wei Yang Link: http://lkml.kernel.org/r/20200228224617.11343-1-mateusznosek0@gmail.com Signed-off-by: Linus Torvalds --- diff --git a/mm/mm_init.c b/mm/mm_init.c index 5c918388de99..7da6991d9435 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -37,7 +37,7 @@ void __init mminit_verify_zonelist(void) struct zonelist *zonelist; int i, listid, zoneid; - BUG_ON(MAX_ZONELISTS > 2); + BUILD_BUG_ON(MAX_ZONELISTS > 2); for (i = 0; i < MAX_ZONELISTS * MAX_NR_ZONES; i++) { /* Identify the zone and nodelist */