Skip to contentSkip to conversation

m68k-mm-motorola-specify-pmd_page-type.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 3, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: m68k/mm/motorola: specify pmd_page() type
has been removed from the -mm tree. Its filename was
m68k-mm-motorola-specify-pmd_page-type.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Lorenzo Stoakes <[email protected]>
Subject: m68k/mm/motorola: specify pmd_page() type
Date: Thu, 12 Jan 2023 12:39:30 +0000

Failing to specify a specific type here breaks anything that relies on the type being explicitly known, such as page_folio().

Make explicit the type of null pointer returned here.

---

arch/m68k/include/asm/motorola_pgtable.h renamed from arch/m68k/include/asm/motorola_pgtable.h~m68k-mm-motorola-specify-pmd_page-type +1 -1
@@ -124,7 +124,7 @@ static inline void pud_set(pud_t *pudp,
  * expects pmd_page() to exists, only to then DCE it all. Provide a dummy to
  * make the compiler happy.
  */
-#define pmd_page(pmd)		NULL
+#define pmd_page(pmd)		((struct page *)NULL)
 
 
 #define pud_none(pud)		(!pud_val(pud))

_

Patches currently in -mm which might be from [email protected] are