Re: [PATCH] sh: clk: Fix discarding const qualifier warning
From: Arnd Bergmann
Date: Tue Jan 07 2020 - 08:54:37 EST
arch/powerpc/kernel/iomap.cOn Tue, Jan 7, 2020 at 2:33 PM Krzysztof
Kozlowski <krzk@xxxxxxxxxx> wrote:
> On Tue, Jan 07, 2020 at 02:05:14PM +0100, Krzysztof Kozlowski wrote:
> > On Tue, 7 Jan 2020 at 14:00, Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
> > Since this is a SuperH driver, I adjusted it to the SuperH
> > implementation - lack of const. However iIndeed it makes sense to have
> > them all taking "const"... Let me check, if I can fix it (without the
> > real HW).
> That will be non-trivial because many platforms define ioreadX() with
> non-const. For example entire alpha with many its implementations of
> ioread(). Even include/asm-generic/iomap.h defines them as non-const...
I found these instances:
At least the last four file would have to be done at the same time as
the header is shared, but the actual conversion should be trivial.