[RFT 06/13] arc: Constify ioreadX() iomem argument (as in generic implementation)

Arnd Bergmann arnd at arndb.de
Wed Jan 8 04:10:07 AEDT 2020


On Tue, Jan 7, 2020 at 5:54 PM Krzysztof Kozlowski <krzk at kernel.org> wrote:
>
> The ioreadX() helpers have inconsistent interface.  On some architectures
> void *__iomem address argument is a pointer to const, on some not.
>
> Implementations of ioreadX() do not modify the memory under the
> address so they can be converted to a "const" version for const-safety
> and consistency among architectures.
>
> Signed-off-by: Krzysztof Kozlowski <krzk at kernel.org>

The patch looks correct, but I would not bother here, as it has no
effect on the compiler or its output.

      Arnd


More information about the Linuxppc-dev mailing list