Thread (1 message) 1 message, 1 author, 2023-05-16

Re: [PATCH 02/12] m68k: Pass a pointer to virt_to_pfn() virt_to_page()

flat view

From: Linus Walleij <hidden>
Date: 2023-05-16 09:19:41
Also in: linux-arch, linux-cifs, linux-fsdevel, linux-m68k, lkml

On Fri, May 12, 2023 at 12:26 PM Geert Uytterhoeven
[off-list ref] wrote:
quoted hunk
Much simpler to drop the cast in __pte_page() instead:
@@ -91,7 +91,7 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
 #define pmd_set(pmdp,ptep) do {} while (0)

 #define __pte_page(pte) \
-((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))
+        (__va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))
Thanks, folded this into the patch!

Yours,
Linus Walleij

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help