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>
This commit is contained in:
Chris Metcalf 2013-08-06 14:34:08 -04:00
parent b63ea7121c
commit e5f7bd4353
1 changed files with 2 additions and 1 deletions

View File

@ -870,7 +870,8 @@ void vmalloc_sync_all(void)
{ {
#ifdef __tilegx__ #ifdef __tilegx__
/* Currently all L1 kernel pmd's are static and shared. */ /* Currently all L1 kernel pmd's are static and shared. */
BUG_ON(pgd_index(VMALLOC_END) != pgd_index(VMALLOC_START)); BUILD_BUG_ON(pgd_index(VMALLOC_END - PAGE_SIZE) !=
pgd_index(VMALLOC_START));
#else #else
/* /*
* Note that races in the updates of insync and start aren't * Note that races in the updates of insync and start aren't