[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMuHMdXMA4seUXqJsoVpuYNVS8wEFWYJKRBSWOZ=vS2Js6Bh3g@mail.gmail.com>
Date: Thu, 27 Nov 2025 11:22:09 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Daniel Palmer <daniel@...ngy.jp>
Cc: kernel test robot <lkp@...el.com>, oe-kbuild-all@...ts.linux.dev, kas@...nel.org,
mingo@...nel.org, seanjc@...gle.com, bp@...en8.de,
linux-m68k@...ts.linux-m68k.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] m68k: implement runtime consts
Hi Daniel,
On Thu, 27 Nov 2025 at 11:13, Daniel Palmer <daniel@...ngy.jp> wrote:
> On Thu, 27 Nov 2025 at 10:59, kernel test robot <lkp@...el.com> wrote:
> > All warnings (new ones prefixed by >>):
> >
> > In file included from fs/dcache.c:38:
> > arch/m68k/include/asm/runtime-const.h: In function '__runtime_fixup_ptr':
> > >> arch/m68k/include/asm/runtime-const.h:28:29: warning: unused variable 'end' [-Wunused-variable]
> > 28 | const unsigned long end = start + sizeof(*value);
> > | ^~~
> > arch/m68k/include/asm/runtime-const.h: In function '__runtime_fixup_shift':
> > arch/m68k/include/asm/runtime-const.h:51:29: warning: unused variable 'end' [-Wunused-variable]
> > 51 | const unsigned long end = start + sizeof(*insn);
> > | ^~~
>
> I guess this is because allnoconfig results in CONFIG_MMU=n and that means
> that the nommu defines for cache operations are used and those look like:
> #define flush_icache_range(start, len) __flush_icache_all()
>
> And the arguments getting passed aren't used. Also noticed that it's
> start and len
> there not start and end like everywhere else seems to be...
>
> I guess the flush_icache_range macro needs to be tweaked to not
> trigger the unused
> warning but I'm not sure how right now.
Replacing the macros by static inline functions should fix that.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
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
Powered by blists - more mailing lists