提交 e5f7bd43 编写于 作者: C Chris Metcalf

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: NChris Metcalf <cmetcalf@tilera.com>
上级 b63ea712
......@@ -870,7 +870,8 @@ void vmalloc_sync_all(void)
{
#ifdef __tilegx__
/* 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
/*
* Note that races in the updates of insync and start aren't
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册