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]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux