浏览代码

arch/tile: convert a BUG_ON to BUILD_BUG_ON

Inspired by Akinobu Mita's cleanup work.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Chris Metcalf 15 年之前
父节点
当前提交
e18105c128
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/tile/kernel/setup.c

+ 1 - 1
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) {