• Mark Rutland's avatar
    arm64: mm: remove pointless PAGE_MASKing · e2c30ee3
    Mark Rutland authored
    As pgd_offset{,_k} shift the input address by PGDIR_SHIFT, the sub-page
    bits will always be shifted out. There is no need to apply PAGE_MASK
    before this.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Jeremy Linton <jeremy.linton@arm.com>
    Cc: Laura Abbott <labbott@fedoraproject.org>
    Cc: Will Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    e2c30ee3
mmu.c 17.6 KB