Commit 11e339d5 authored by Gavin Shan's avatar Gavin Shan Committed by Will Deacon

arm64/mm: Remove CONT_RANGE_OFFSET

The macro was introduced by commit <ecf35a23> ("arm64: PTE/PMD
contiguous bit definition") at the beginning. It's only used by
commit <348a65cd> ("arm64: Mark kernel page ranges contiguous"),
which was reverted later by commit <667c2759>. This makes the
macro unused.

This removes the unused macro (CONT_RANGE_OFFSET).
Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
Reviewed-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200910095936.20307-1-gshan@redhat.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 53fa117b
......@@ -98,8 +98,6 @@
#define CONT_PMDS (1 << (CONT_PMD_SHIFT - PMD_SHIFT))
#define CONT_PMD_SIZE (CONT_PMDS * PMD_SIZE)
#define CONT_PMD_MASK (~(CONT_PMD_SIZE - 1))
/* the numerical offset of the PTE within a range of CONT_PTES */
#define CONT_RANGE_OFFSET(addr) (((addr)>>PAGE_SHIFT)&(CONT_PTES-1))
/*
* Hardware page table definitions.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment