Re: drivers/i3c/internals.h:54:9: error: passing 'const void *' to parameter of type 'void *' discards qualifiers

From: Geert Uytterhoeven

Date: Mon Sep 22 2025 - 02:32:01 EST


On Mon, 22 Sept 2025 at 02:17, Philip Li <philip.li@xxxxxxxxx> wrote:
> On Sun, Sep 21, 2025 at 11:48:05PM +0200, Alexandre Belloni wrote:
> > On 21/09/2025 23:54:32+0800, kernel test robot wrote:
> > > FYI, the error/warning still remains.
> >
> > As replied multiple times, the error is in the sparc64 code, not i3c.
>
> Sorry about this, the bot will be configured to ignore this issue to
> avoid further reports.

It is expected to be fixed shortly:
https://lore.kernel.org/all/fbb1a96c-d913-4bdf-b40c-c8981601bbf9@xxxxxxxxxxx/

> > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > > head: f975f08c2e899ae2484407d7bba6bb7f8b6d9d40
> > > commit: 3b661ca549b9e5bb11d0bc97ada6110aac3282d2 i3c: add missing include to internal header
> > > date: 8 weeks ago
> > > config: sparc64-randconfig-001-20250921 (https://download.01.org/0day-ci/archive/20250921/202509212320.yCuqvnVn-lkp@xxxxxxxxx/config)
> > > compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 7c861bcedf61607b6c087380ac711eb7ff918ca6)
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250921/202509212320.yCuqvnVn-lkp@xxxxxxxxx/reproduce)
> > >
> > > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > > the same patch/commit), kindly add following tags
> > > | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202509212320.yCuqvnVn-lkp@xxxxxxxxx/
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > > In file included from drivers/i3c/master.c:21:
> > > >> drivers/i3c/internals.h:54:9: error: passing 'const void *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
> > > 54 | readsl(addr, buf, nbytes / 4);
> > > | ^~~~
> > > arch/sparc/include/asm/io_64.h:265:41: note: passing argument to parameter 'port' here
> > > 265 | static inline void readsl(void __iomem *port, void *buf, unsigned long count)
> > > | ^
> > > 1 error generated.


Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

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