diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-06 14:34:08 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-12 14:46:51 -0400 |
commit | e5f7bd43532a4ff55641584ec237484335f8206e (patch) | |
tree | 4cfff3e9c433518537ade9d8638b0714b73fbf07 /arch/tile | |
parent | b63ea7121c60b38f2d0ca0f270697bc542f6b76c (diff) | |
download | op-kernel-dev-e5f7bd43532a4ff55641584ec237484335f8206e.zip op-kernel-dev-e5f7bd43532a4ff55641584ec237484335f8206e.tar.gz |
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')
-rw-r--r-- | arch/tile/mm/fault.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c index f7f99f9..6152819 100644 --- a/arch/tile/mm/fault.c +++ b/arch/tile/mm/fault.c @@ -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 |