Re: [PATCH v2] m68k: Avoid -Wunused-but-set-parameter in clear_user_page()

Geert Uytterhoeven <[email protected]> Thu, 2 Jul 2026 10:07:18 +0200
Newsgroups org.kernel.vger.linux-m68k,org.kernel.vger.linux-kernel
Message-ID <CAMuHMdUOeHNK7P3A_2c9sWaz_Hq7K_z_uvXzy8qpLCfGG-ojgQ@mail.gmail.com>
Hi Andrew,

On Thu, 2 Jul 2026 at 01:12, Andrew Morton <[email protected]> wrote:
> On Wed, 1 Jul 2026 11:48:35 +0200 Geert Uytterhoeven <[email protected]> wrote:
> > > > --- a/arch/m68k/include/asm/page_mm.h
> > > > +++ b/arch/m68k/include/asm/page_mm.h
> > > > @@ -55,10 +55,12 @@ static inline void clear_page(void *page)
> > > >  #define clear_user_page(addr, vaddr, page)   \
> > > >       do {    clear_page(addr);               \
> > > >               flush_dcache_page(page);        \
> > > > +             (void)(vaddr);                  \
> > > >       } while (0)
> > > >  #define copy_user_page(to, from, vaddr, page)        \
> > > >       do {    copy_page(to, from);            \
> > > >               flush_dcache_page(page);        \
> > > > +             (void)(vaddr);                  \
> > > >       } while (0)
> > > >
> > > >  extern unsigned long m68k_memoffset;
> >
> > People are starting to report this, now gcc-16 is getting more
> > widespread use.
> >
> > Andrew: can you please take this, or shall I queue it for m68k fixes
> > (I don't have any other fixes at the moment)?
> >
> > Acked-by: Geert Uytterhoeven <[email protected]>
>
> Sorry, this fell through a crack.  I've queued it for 7.2-rcX,
> cc:stable.

Thanks a lot!

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds