]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: gpib: Use __iomem attribute for io addresses
authorDave Penkler <dpenkler@gmail.com>
Tue, 14 Jan 2025 16:54:00 +0000 (17:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2025 17:35:56 +0000 (18:35 +0100)
commit77b41a9342f610b90675a15aea87c8462b900404
tree99a2a65bb326bb2f0c52ab4be9217973dab92b8c
parentd43f18d94795aa9aacb110a60bc4df76e112f77f
staging: gpib: Use __iomem attribute for io addresses

In a number of drivers the PCI memory pointers were declared simply as
void *.
This caused sparse to emit the following warning, for example:

agilent_82350b/agilent_82350b.c:44:58: warning: incorrect type in argument 2 (different address spaces)
agilent_82350b/agilent_82350b.c:44:58:    expected void volatile [noderef] __iomem *addr

Declare the PCI memory pointers as void __iomem *addr.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250114165403.16410-2-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/agilent_82350b/agilent_82350b.c
drivers/staging/gpib/agilent_82350b/agilent_82350b.h
drivers/staging/gpib/eastwood/fluke_gpib.h
drivers/staging/gpib/fmh_gpib/fmh_gpib.h
drivers/staging/gpib/ines/ines_gpib.c
drivers/staging/gpib/tnt4882/tnt4882_gpib.c