aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/mm
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-08-06 14:34:08 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-08-12 14:46:51 -0400
commite5f7bd43532a4ff55641584ec237484335f8206e (patch)
tree4cfff3e9c433518537ade9d8638b0714b73fbf07 /arch/tile/mm
parentb63ea7121c60b38f2d0ca0f270697bc542f6b76c (diff)
tile: fix tilegx vmalloc_sync_all BUG_ON
As specified, the test wasn't correct, and in any case it should be a BUILD_BUG_ON. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/mm')
-rw-r--r--arch/tile/mm/fault.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c
index f7f99f90cbe0..6152819e555b 100644
--- a/arch/tile/mm/fault.c
+++ b/arch/tile/mm/fault.c
@@ -870,7 +870,8 @@ void vmalloc_sync_all(void)
870{ 870{
871#ifdef __tilegx__ 871#ifdef __tilegx__
872 /* Currently all L1 kernel pmd's are static and shared. */ 872 /* Currently all L1 kernel pmd's are static and shared. */
873 BUG_ON(pgd_index(VMALLOC_END) != pgd_index(VMALLOC_START)); 873 BUILD_BUG_ON(pgd_index(VMALLOC_END - PAGE_SIZE) !=
874 pgd_index(VMALLOC_START));
874#else 875#else
875 /* 876 /*
876 * Note that races in the updates of insync and start aren't 877 * Note that races in the updates of insync and start aren't