]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Correct type for PUD macros
authorPunit Agrawal <punit.agrawal@arm.com>
Wed, 10 Jan 2018 19:07:26 +0000 (19:07 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 16 Jan 2018 11:14:36 +0000 (11:14 +0000)
commit16226ba7dc4e5071377887b45ca3b1b663767520
treeab3e851fef5435ee4253acad0dbc19eb66b6056d
parent0e6d9cb072722799077638030dfed638a52cfe68
arm64: Correct type for PUD macros

The PUD macros (PUD_TABLE_BIT, PUD_TYPE_MASK, PUD_TYPE_SECT) use the
pgdval_t even when pudval_t is available. Even though the underlying
type for both (u64) is the same it is confusing and may lead to issues
in the future.

Fix this by using pudval_t to define the PUD_* macros.

Fixes: 83266eaee97fe ("ARM64: mm: HugeTLB support.")
Fixes: a1862f0d64534 ("arm64: mm: Create gigabyte kernel logical mappings where possible")
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgtable-hwdef.h