Skip to content

iomap: Constify ioreadX() iomem argument

Krzysztof Kozlowski dri-devel linux-alpha linux-arch linux-media linux-parisc linux-sh linux-snps-arc linux-wireless linuxppc-dev lkml netdev nouveau ntb virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13iomap: Constify ioreadX() iomem argument (as in generic implementation)include/asm-generic/iomap.h include/linux/io-64-nonatomic-hi-lo.h include/linux/io-64-nonatomic-lo-hi.h +1 more+24 -240 replies
1/13iomap: Constify ioreadX() iomem argument (as in generic implementation)include/asm-generic/iomap.h include/linux/io-64-nonatomic-hi-lo.h include/linux/io-64-nonatomic-lo-hi.h +1 more+24 -240 replies
2/13alpha: Constify ioreadX() iomem argument (as in generic implementation)arch/alpha/include/asm/core_apecs.h arch/alpha/include/asm/core_cia.h arch/alpha/include/asm/core_lca.h +9 more+37 -374 replies
2/13alpha: Constify ioreadX() iomem argument (as in generic implementation)arch/alpha/include/asm/core_apecs.h arch/alpha/include/asm/core_cia.h arch/alpha/include/asm/core_lca.h +9 more+37 -370 replies
2/13sh: Constify ioreadX() iomem argument (as in generic implementation)arch/sh/kernel/iomap.c+5 -50 replies
2/13sh: Constify ioreadX() iomem argument (as in generic implementation)arch/sh/kernel/iomap.c+5 -50 replies
3/13alpha: Constify ioreadX() iomem argument (as in generic implementation)arch/alpha/include/asm/core_apecs.h arch/alpha/include/asm/core_cia.h arch/alpha/include/asm/core_lca.h +9 more+37 -370 replies
3/13alpha: Constify ioreadX() iomem argument (as in generic implementation)arch/alpha/include/asm/core_apecs.h arch/alpha/include/asm/core_cia.h arch/alpha/include/asm/core_lca.h +9 more+37 -370 replies
3/13sh: Constify ioreadX() iomem argument (as in generic implementation)arch/sh/kernel/iomap.c+5 -52 replies
3/13sh: Constify ioreadX() iomem argument (as in generic implementation)arch/sh/kernel/iomap.c+5 -50 replies
4/13parisc: Constify ioreadX() iomem argument (as in generic implementation)arch/parisc/include/asm/io.h arch/parisc/lib/iomap.c+26 -260 replies
4/13parisc: Constify ioreadX() iomem argument (as in generic implementation)arch/parisc/include/asm/io.h arch/parisc/lib/iomap.c+26 -260 replies
5/13powerpc: Constify ioreadX() iomem argument (as in generic implementation)arch/powerpc/kernel/iomap.c+11 -110 replies
5/13powerpc: Constify ioreadX() iomem argument (as in generic implementation)arch/powerpc/kernel/iomap.c+11 -110 replies
6/13arc: Constify ioreadX() iomem argument (as in generic implementation)arch/arc/plat-axs10x/axs10x.c+2 -22 replies
6/13arc: Constify ioreadX() iomem argument (as in generic implementation)arch/arc/plat-axs10x/axs10x.c+2 -20 replies
7/13drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation)drivers/gpu/drm/mgag200/mgag200_drv.h+2 -20 replies
7/13drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation)drivers/gpu/drm/mgag200/mgag200_drv.h+2 -20 replies
8/13drm/nouveau: Constify ioreadX() iomem argument (as in generic implementation)drivers/gpu/drm/nouveau/nouveau_bo.c+1 -10 replies
8/13drm/nouveau: Constify ioreadX() iomem argument (as in generic implementation)drivers/gpu/drm/nouveau/nouveau_bo.c+1 -10 replies
9/13media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation)drivers/media/platform/fsl-viu.c+1 -10 replies
9/13media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation)drivers/media/platform/fsl-viu.c+1 -10 replies
10/13net: wireless: ath5k: Constify ioreadX() iomem argument (as in generic implementation)drivers/net/wireless/ath/ath5k/ahb.c+5 -50 replies
10/13net: wireless: ath5k: Constify ioreadX() iomem argument (as in generic implementation)drivers/net/wireless/ath/ath5k/ahb.c+5 -50 replies
11/13net: wireless: rtl818x: Constify ioreadX() iomem argument (as in generic implementation)drivers/net/wireless/realtek/rtl818x/rtl8180/rtl8180.h+3 -30 replies
11/13net: wireless: rtl818x: Constify ioreadX() iomem argument (as in generic implementation)drivers/net/wireless/realtek/rtl818x/rtl8180/rtl8180.h+3 -30 replies
12/13ntb: intel: Constify ioreadX() iomem argument (as in generic implementation)drivers/ntb/hw/intel/ntb_hw_gen1.c drivers/ntb/hw/intel/ntb_hw_gen3.h drivers/ntb/hw/intel/ntb_hw_intel.h+3 -30 replies
12/13ntb: intel: Constify ioreadX() iomem argument (as in generic implementation)drivers/ntb/hw/intel/ntb_hw_gen1.c drivers/ntb/hw/intel/ntb_hw_gen3.h drivers/ntb/hw/intel/ntb_hw_intel.h+3 -30 replies
13/13virtio: pci: Constify ioreadX() iomem argument (as in generic implementation)drivers/virtio/virtio_pci_modern.c+3 -30 replies
13/13virtio: pci: Constify ioreadX() iomem argument (as in generic implementation)drivers/virtio/virtio_pci_modern.c+3 -30 replies

Reviews trailers per patch

None of the 30 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGeert Uytterhoeven
SeriesR-b R-b
1/13
1/13
2/13
2/13
2/13
2/13
3/13
3/13
3/13
3/13
4/13
4/13
5/13
5/13
6/13
6/13
7/13
7/13
8/13
8/13
9/13
9/13
10/13
10/13
11/13
11/13
12/13
12/13
13/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFT 00/13] iomap: Constify ioreadX() iomem argument

Hi,

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.

Patchset was really tested on all affected architectures. Build testing is in progress - I hope auto-builders will point any issues.

Todo
==
Convert also string versions (ioread16_rep() etc) if this aproach looks OK.

Merging
===The first 5 patches - iomap, alpha, sh, parisc and powerpc - should probably go via one tree, or even squashed into one.

All other can go separately after these get merged.

Best regards,
Krzysztof

Krzysztof Kozlowski (13):
iomap: Constify ioreadX() iomem argument (as in generic
implementation)
alpha: Constify ioreadX() iomem argument (as in generic
implementation)
sh: Constify ioreadX() iomem argument (as in generic implementation)
parisc: Constify ioreadX() iomem argument (as in generic
implementation)
powerpc: Constify ioreadX() iomem argument (as in generic
implementation)
arc: Constify ioreadX() iomem argument (as in generic implementation) drm/mgag200: Constify ioreadX() iomem argument (as in generic
implementation)
drm/nouveau: Constify ioreadX() iomem argument (as in generic
implementation)
media: fsl-viu: Constify ioreadX() iomem argument (as in generic
implementation)
net: wireless: ath5k: Constify ioreadX() iomem argument (as in generic
implementation)
net: wireless: rtl818x: Constify ioreadX() iomem argument (as in
generic implementation)
ntb: intel: Constify ioreadX() iomem argument (as in generic
implementation)
virtio: pci: Constify ioreadX() iomem argument (as in generic
implementation)

 arch/alpha/include/asm/core_apecs.h                |  6 +--
 arch/alpha/include/asm/core_cia.h                  |  6 +--
 arch/alpha/include/asm/core_lca.h                  |  6 +--
 arch/alpha/include/asm/core_marvel.h               |  4 +-
 arch/alpha/include/asm/core_mcpcia.h               |  6 +--
 arch/alpha/include/asm/core_t2.h                   |  2 +-
 arch/alpha/include/asm/io.h                        | 12 +++---
 arch/alpha/include/asm/io_trivial.h                | 16 ++++----
 arch/alpha/include/asm/jensen.h                    |  2 +-
 arch/alpha/include/asm/machvec.h                   |  6 +--
 arch/alpha/kernel/core_marvel.c                    |  2 +-
 arch/alpha/kernel/io.c                             |  6 +--
 arch/arc/plat-axs10x/axs10x.c                      |  4 +-
 arch/parisc/include/asm/io.h                       |  4 +-
 arch/parisc/lib/iomap.c                            | 48 +++++++++++-----------
 arch/powerpc/kernel/iomap.c                        | 22 +++++-----
 arch/sh/kernel/iomap.c                             | 10 ++---
 drivers/gpu/drm/mgag200/mgag200_drv.h              |  4 +-
 drivers/gpu/drm/nouveau/nouveau_bo.c               |  2 +-
 drivers/media/platform/fsl-viu.c                   |  2 +-
 drivers/net/wireless/ath/ath5k/ahb.c               | 10 ++---
 .../net/wireless/realtek/rtl818x/rtl8180/rtl8180.h |  6 +--
 drivers/ntb/hw/intel/ntb_hw_gen1.c                 |  2 +-
 drivers/ntb/hw/intel/ntb_hw_gen3.h                 |  2 +-
 drivers/ntb/hw/intel/ntb_hw_intel.h                |  2 +-
 drivers/virtio/virtio_pci_modern.c                 |  6 +--
 include/asm-generic/iomap.h                        | 22 +++++-----
 include/linux/io-64-nonatomic-hi-lo.h              |  4 +-
 include/linux/io-64-nonatomic-lo-hi.h              |  4 +-
 lib/iomap.c                                        | 18 ++++----
 30 files changed, 123 insertions(+), 123 deletions(-)
Signature · 1 line
2.7.4