Re: [PATCH 2/2 v3] regmap: mmio: Support accelerared noinc operations

From: Linus Walleij
Date: Tue Aug 16 2022 - 16:50:54 EST


On Tue, Aug 16, 2022 at 9:45 PM kernel test robot <lkp@xxxxxxxxx> wrote:

> >> drivers/base/regmap/regmap-mmio.c:212:3: error: call to undeclared function 'writesb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> writesb(ctx->regs + reg, (const u8 *)val, val_count);
> ^
> drivers/base/regmap/regmap-mmio.c:212:3: note: did you mean 'writeb'?
> arch/hexagon/include/asm/io.h:122:20: note: 'writeb' declared here
> static inline void writeb(u8 data, volatile void __iomem *addr)
> ^
> >> drivers/base/regmap/regmap-mmio.c:366:3: error: call to undeclared function 'readsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> readsb(ctx->regs + reg, (u8 *)val, val_count);
> ^
> drivers/base/regmap/regmap-mmio.c:366:3: note: did you mean 'readb'?
> arch/hexagon/include/asm/io.h:83:18: note: 'readb' declared here
> static inline u8 readb(const volatile void __iomem *addr)
> ^
> 2 errors generated.

Yeah Hexagon breaks the <asm/io.h> contract and does not provide
readsb/writesb.

OK I just fix Hexagon as part of patch 2, I hope.

Yours,
Linus Walleij