KVM: arm64: Drop PTE_S2_MEMATTR_MASK
authorZenghui Yu <yuzenghui@huawei.com>
Wed, 15 Apr 2020 10:57:46 +0000 (18:57 +0800)
committerWill Deacon <will@kernel.org>
Tue, 28 Apr 2020 13:51:33 +0000 (14:51 +0100)
The only user of PTE_S2_MEMATTR_MASK macro had been removed since
commit a501e32430d4 ("arm64: Clean up the default pgprot setting").
It has been about six years and no one has used it again.

Let's drop it.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200415105746.314-1-yuzenghui@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pgtable-hwdef.h

index 6bf5e650da7883ba560f2f43a037d4f69facc3e4..99315bdca0e6108a285a93ebd1a1fde2230dc4e0 100644 (file)
  * Memory Attribute override for Stage-2 (MemAttr[3:0])
  */
 #define PTE_S2_MEMATTR(t)      (_AT(pteval_t, (t)) << 2)
-#define PTE_S2_MEMATTR_MASK    (_AT(pteval_t, 0xf) << 2)
 
 /*
  * EL2/HYP PTE/PMD definitions