summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorMateusz Nosek <mateusznosek0@gmail.com>2020-04-07 05:08:36 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-07 19:43:41 +0200
commite46b893dd113253c2ff032aed22d9df404c5511d (patch)
treeaab3073e958861cf12e3e8ee3b030f4511d20135 /mm/swapfile.c
parentmm: fix ambiguous comments for better code readability (diff)
downloadlinux-e46b893dd113253c2ff032aed22d9df404c5511d.tar.xz
linux-e46b893dd113253c2ff032aed22d9df404c5511d.zip
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 <mateusznosek0@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Wei Yang <richard.weiyang@gmail.com> Link: http://lkml.kernel.org/r/20200228224617.11343-1-mateusznosek0@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions