mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
mm: remove __HAVE_ARCH_PTE_SWP_EXCLUSIVE
__HAVE_ARCH_PTE_SWP_EXCLUSIVE is now supported by all architectures that support swp PTEs, so let's drop it. Link: https://lkml.kernel.org/r/20230113171026.582290-27-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
f5c3fe300c
commit
950fe885a8
@@ -810,7 +810,6 @@ static void __init pmd_swap_soft_dirty_tests(struct pgtable_debug_args *args) {
|
||||
|
||||
static void __init pte_swap_exclusive_tests(struct pgtable_debug_args *args)
|
||||
{
|
||||
#ifdef __HAVE_ARCH_PTE_SWP_EXCLUSIVE
|
||||
unsigned long max_swap_offset;
|
||||
swp_entry_t entry, entry2;
|
||||
pte_t pte;
|
||||
@@ -841,7 +840,6 @@ static void __init pte_swap_exclusive_tests(struct pgtable_debug_args *args)
|
||||
WARN_ON(!is_swap_pte(pte));
|
||||
entry2 = pte_to_swp_entry(pte);
|
||||
WARN_ON(memcmp(&entry, &entry2, sizeof(entry)));
|
||||
#endif /* __HAVE_ARCH_PTE_SWP_EXCLUSIVE */
|
||||
}
|
||||
|
||||
static void __init pte_swap_tests(struct pgtable_debug_args *args)
|
||||
|
Reference in New Issue
Block a user