mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm: remove useless code
@ 2025-04-27  6:13 Feng Lee
  2025-04-27  8:22 ` Barry Song
  0 siblings, 1 reply; 9+ messages in thread
From: Feng Lee @ 2025-04-27  6:13 UTC (permalink / raw)
  To: akpm
  Cc: david, ryan.roberts, libang.li, peterx, maobibo, baohua,
	lance.yang, anshuman.khandual, trivial, linux-kernel, Feng Lee

Remove unused conditional macros.

Signed-off-by: Feng Lee <379943137@qq.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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-05-08 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-27  6:13 [PATCH] mm: remove useless code Feng Lee
2025-04-27  8:22 ` Barry Song
2025-04-28  7:17   ` David Hildenbrand
2025-04-28 11:03     ` Barry Song
2025-04-28 13:59       ` David Hildenbrand
2025-04-30 23:23         ` Barry Song
2025-05-08 12:47           ` Feng Lee
2025-05-08 14:39           ` David Hildenbrand
2025-04-29  8:13       ` Feng Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®