]> Pileus Git - ~andy/linux/commitdiff
arch/tile: convert a BUG_ON to BUILD_BUG_ON
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 14 Oct 2010 20:50:26 +0000 (16:50 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 15 Oct 2010 19:40:03 +0000 (15:40 -0400)
Inspired by Akinobu Mita's cleanup work.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/setup.c

index 6444a2bbe1a47a6977dc123cbcb2486e97a16061..f3a50e74f9a4a0768058d81564c9da9c625938a5 100644 (file)
@@ -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) {