From: Chris Metcalf Date: Thu, 14 Oct 2010 20:50:26 +0000 (-0400) Subject: arch/tile: convert a BUG_ON to BUILD_BUG_ON X-Git-Tag: firefly_0821_release~7613^2~3626^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e18105c128734b1671739ad4d85e216ebec28c61;p=firefly-linux-kernel-4.4.55.git arch/tile: convert a BUG_ON to BUILD_BUG_ON Inspired by Akinobu Mita's cleanup work. Signed-off-by: Chris Metcalf --- diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 6444a2bbe1a4..f3a50e74f9a4 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c @@ -311,7 +311,7 @@ static void __init setup_memory(void) #endif /* We are using a char to hold the cpu_2_node[] mapping */ - BUG_ON(MAX_NUMNODES > 127); + BUILD_BUG_ON(MAX_NUMNODES > 127); /* Discover the ranges of memory available to us */ for (i = 0; ; ++i) {