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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 23, 2023 at 2:42 PM Andreas Schwab <schwab@xxxxxxxxxxxxxx> wrote:
On Mär 23 2023, Linus Walleij wrote:

diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c
index 911301224078..0a9bc8292f78 100644
--- a/arch/m68k/mm/motorola.c
+++ b/arch/m68k/mm/motorola.c
@@ -102,7 +102,7 @@ static struct list_head ptable_list[2] = {
      LIST_HEAD_INIT(ptable_list[1]),
 };

-#define PD_PTABLE(page) ((ptable_desc *)&(virt_to_page(page)->lru))
+#define PD_PTABLE(page) ((ptable_desc *)&(virt_to_page((void *)page)->lru))

That should probably get a pair of parens around the macro argument.

Ooops that's right. I'll fix.

Yours,
Linus Walleij




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux