commit | cac4b8cdf5a20a11d1725b832350c044d9e13d29 | [log] [tgz] |
---|---|---|
author | Catalin Marinas <catalin.marinas@arm.com> | Thu Feb 25 15:53:44 2016 +0000 |
committer | Catalin Marinas <catalin.marinas@arm.com> | Thu Feb 25 16:01:26 2016 +0000 |
tree | cc236303f0fcb3d6df85672470dcc8ee89a3ff0e | |
parent | 28c5dcb22f90113dea101b0421bc6971bccb7a74 [diff] |
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: Catalin Marinas <catalin.marinas@arm.com>