mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 08:47:44 -04:00
mm: make mk_pte() definition unconditional
All architectures now use the common mk_pte() definition, so we can remove the condition. Link: https://lkml.kernel.org/r/20250402181709.2386022-7-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Acked-by: David Hildenbrand <david@redhat.com> Cc: Zi Yan <ziy@nvidia.com> Cc: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Andreas Larsson <andreas@gaisler.com> Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Muchun Song <muchun.song@linux.dev> Cc: Richard Weinberger <richard@nod.at> Cc: <x86@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
669eec68f6
commit
4ec492a628
@@ -2004,14 +2004,12 @@ static inline struct folio *pfn_folio(unsigned long pfn)
|
||||
return page_folio(pfn_to_page(pfn));
|
||||
}
|
||||
|
||||
#ifndef mk_pte
|
||||
#ifdef CONFIG_MMU
|
||||
static inline pte_t mk_pte(struct page *page, pgprot_t pgprot)
|
||||
{
|
||||
return pfn_pte(page_to_pfn(page), pgprot);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static inline bool folio_has_pincount(const struct folio *folio)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user