Skip to content
Commit cac4b8cd authored by Catalin Marinas's avatar Catalin Marinas
Browse files

arm64: Fix building error with 16KB pages and 36-bit VA



In such configuration, Linux uses only two pages of page tables and
__pud_populate() should not be used. However, the BUILD_BUG() triggers
since pud_sect() is still defined and the compiler cannot eliminate such
code, even though at run-time it should not be triggered. This patch
extends the #ifdef ARM64_64K_PAGES condition for pud_sect to include
PGTABLE_LEVELS < 3.

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 28c5dcb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment