[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_C263C0783702591C464F887E3D3C496E6B08@qq.com>
Date: Sun, 27 Apr 2025 14:13:59 +0800
From: Feng Lee <379943137@...com>
To: akpm@...ux-foundation.org
Cc: david@...hat.com,
ryan.roberts@....com,
libang.li@...group.com,
peterx@...hat.com,
maobibo@...ngson.cn,
baohua@...nel.org,
lance.yang@...ux.dev,
anshuman.khandual@....com,
trivial@...nel.org,
linux-kernel@...r.kernel.org,
Feng Lee <379943137@...com>
Subject: [PATCH] mm: remove useless code
Remove unused conditional macros.
Signed-off-by: Feng Lee <379943137@...com>
---
include/linux/pgtable.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h
index b50447ef1c92..47c5a54b7551 100644
--- a/include/linux/pgtable.h
+++ b/include/linux/pgtable.h
@@ -1164,9 +1164,7 @@ static inline void arch_swap_restore(swp_entry_t entry, struct folio *folio)
}
#endif
-#ifndef __HAVE_ARCH_PGD_OFFSET_GATE
#define pgd_offset_gate(mm, addr) pgd_offset(mm, addr)
-#endif
#ifndef __HAVE_ARCH_MOVE_PTE
#define move_pte(pte, old_addr, new_addr) (pte)
--
2.49.0
Powered by blists - more mailing lists