Skip to contentSkip to conversation

parisc: soft_offline_page() now takes the pfn

PATCH New Helge Deller 1 participant 1 message Dec 20, 2019 PA-RISC architecture

lore
Share & tools
lore

Helge Deller

author maintainer
#0 lore raw

PATCH 1/1 parisc: soft_offline_page() now takes the pfn

Switch page deallocation table (pdt) driver to use pfn instead of a page pointer in soft_offline_page().

Fixes feec24a6139d ("mm, soft-offline: convert parameter to pfn")
arch/parisc/kernel/pdt.c +1 -2
index 36434d4da381..749c4579db0d 100644
@@ -327,8 +327,7 @@ static int pdt_mainloop(void *unused)
 			    ((pde & PDT_ADDR_SINGLE_ERR) == 0))
 				memory_failure(pde >> PAGE_SHIFT, 0);
 			else
-				soft_offline_page(
-					pfn_to_page(pde >> PAGE_SHIFT), 0);
+				soft_offline_page(pde >> PAGE_SHIFT, 0);
 #else
 			pr_crit("PDT: memory error at 0x%lx ignored.\n"
 				"Rebuild kernel with CONFIG_MEMORY_FAILURE=y "