Skip to content

Commit

Permalink
arch/tile: convert a BUG_ON to BUILD_BUG_ON
Browse files Browse the repository at this point in the history
Inspired by Akinobu Mita's cleanup work.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
Chris Metcalf committed Oct 15, 2010
1 parent ce7f2a3 commit e18105c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e18105c

Please sign in to comment.