diff options
author | Pasha Tatashin <pasha.tatashin@soleen.com> | 2022-05-16 18:52:02 +0000 |
---|---|---|
committer | Dave Hansen <dave.hansen@linux.intel.com> | 2022-12-15 10:37:27 -0800 |
commit | 82328227db8f0b9b5f77bb5afcd47e59d0e4d08f (patch) | |
tree | 058d1358810c6dc701610fc01dc23bc8420a0c43 /arch/x86/kernel/amd_gart_64.c | |
parent | 2dff2c359e829245bc3d80e42e296876d1f0cf8e (diff) | |
download | linux-stable-82328227db8f0b9b5f77bb5afcd47e59d0e4d08f.tar.gz linux-stable-82328227db8f0b9b5f77bb5afcd47e59d0e4d08f.tar.bz2 linux-stable-82328227db8f0b9b5f77bb5afcd47e59d0e4d08f.zip |
x86/mm: Remove P*D_PAGE_MASK and P*D_PAGE_SIZE macros
Other architectures and the common mm/ use P*D_MASK, and P*D_SIZE.
Remove the duplicated P*D_PAGE_MASK and P*D_PAGE_SIZE which are only
used in x86/*.
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/20220516185202.604654-1-tatashin@google.com
Diffstat (limited to 'arch/x86/kernel/amd_gart_64.c')
-rw-r--r-- | arch/x86/kernel/amd_gart_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_gart_64.c b/arch/x86/kernel/amd_gart_64.c index 19a0207e529f..56a917df410d 100644 --- a/arch/x86/kernel/amd_gart_64.c +++ b/arch/x86/kernel/amd_gart_64.c @@ -504,7 +504,7 @@ static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size) } a = aper + iommu_size; - iommu_size -= round_up(a, PMD_PAGE_SIZE) - a; + iommu_size -= round_up(a, PMD_SIZE) - a; if (iommu_size < 64*1024*1024) { pr_warn("PCI-DMA: Warning: Small IOMMU %luMB." |