iomap: constify ioreadX() iomem argument (as in generic implementation)
Patch series "iomap: Constify ioreadX() iomem argument", v3. The ioread8/16/32() and others have inconsistent interface among the architectures: some taking address as const, some not. It seems there is nothing really stopping all of them to take pointer to const. This patch (of 4): The ioreadX() and ioreadX_rep() 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. [krzk@kernel.org: sh: clk: fix assignment from incompatible pointer type for ioreadX()] Link: http://lkml.kernel.org/r/20200723082017.24053-1-krzk@kernel.org [akpm@linux-foundation.org: fix drivers/mailbox/bcm-pdc-mailbox.c] Link: http://lkml.kernel.org/r/202007132209.Rxmv4QyS%25lkp@intel.com Suggested-by: Geert Uytterho...
Showing
- arch/alpha/include/asm/core_apecs.h 3 additions, 3 deletionsarch/alpha/include/asm/core_apecs.h
- arch/alpha/include/asm/core_cia.h 3 additions, 3 deletionsarch/alpha/include/asm/core_cia.h
- arch/alpha/include/asm/core_lca.h 3 additions, 3 deletionsarch/alpha/include/asm/core_lca.h
- arch/alpha/include/asm/core_marvel.h 2 additions, 2 deletionsarch/alpha/include/asm/core_marvel.h
- arch/alpha/include/asm/core_mcpcia.h 3 additions, 3 deletionsarch/alpha/include/asm/core_mcpcia.h
- arch/alpha/include/asm/core_t2.h 1 addition, 1 deletionarch/alpha/include/asm/core_t2.h
- arch/alpha/include/asm/io.h 6 additions, 6 deletionsarch/alpha/include/asm/io.h
- arch/alpha/include/asm/io_trivial.h 8 additions, 8 deletionsarch/alpha/include/asm/io_trivial.h
- arch/alpha/include/asm/jensen.h 1 addition, 1 deletionarch/alpha/include/asm/jensen.h
- arch/alpha/include/asm/machvec.h 3 additions, 3 deletionsarch/alpha/include/asm/machvec.h
- arch/alpha/kernel/core_marvel.c 1 addition, 1 deletionarch/alpha/kernel/core_marvel.c
- arch/alpha/kernel/io.c 6 additions, 6 deletionsarch/alpha/kernel/io.c
- arch/parisc/include/asm/io.h 2 additions, 2 deletionsarch/parisc/include/asm/io.h
- arch/parisc/lib/iomap.c 36 additions, 36 deletionsarch/parisc/lib/iomap.c
- arch/powerpc/kernel/iomap.c 14 additions, 14 deletionsarch/powerpc/kernel/iomap.c
- arch/sh/kernel/iomap.c 11 additions, 11 deletionsarch/sh/kernel/iomap.c
- drivers/mailbox/bcm-pdc-mailbox.c 1 addition, 1 deletiondrivers/mailbox/bcm-pdc-mailbox.c
- drivers/sh/clk/cpg.c 1 addition, 1 deletiondrivers/sh/clk/cpg.c
- include/asm-generic/iomap.h 14 additions, 14 deletionsinclude/asm-generic/iomap.h
- include/linux/io-64-nonatomic-hi-lo.h 2 additions, 2 deletionsinclude/linux/io-64-nonatomic-hi-lo.h
Please register or sign in to comment