]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64/mm: Ensure PGD_SIZE is aligned to 64 bytes when PA_BITS = 52
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 31 Oct 2025 07:12:55 +0000 (07:12 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Nov 2025 19:13:03 +0000 (19:13 +0000)
commite2e21a9757b9035d9f649e464c0b254cbbe8a148
tree3059a0211b62afd35d18a10088245feda3e4d876
parentfc1abd409318b81274566e1808c598b0b0462dc6
arm64/mm: Ensure PGD_SIZE is aligned to 64 bytes when PA_BITS = 52

Although the comment clearly states about PGD table's alignment requirement
(when PA_BITS = 52) but the subsequent BUILD_BUG_ON() tests size comparison
to 64 bytes instead. So change it as an actual alignment test.

Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/pgd.c