linux-stable/drivers/char/xillybus
Baoquan He 806eb9e416 char: xillybus: make XILLYBUS_OF depend on HAS_IOMEM
On s390 systems (aka mainframes), it has classic channel devices for
networking and permanent storage that are currently even more common
than PCI devices. Hence it could have a fully functional s390 kernel
with CONFIG_PCI=n, then the relevant iomem mapping functions
[including ioremap(), devm_ioremap(), etc.] are not available.

Here let XILLYBUS_OF depend on HAS_IOMEM so that it won't be built
to cause below compiling error if PCI is unset:

------
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/char/xillybus/xillybus_of.ko] undefined!
------

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/
Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Eli Billauer <eli.billauer@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230707135852.24292-3-bhe@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-04 15:39:39 +02:00
..
Kconfig char: xillybus: make XILLYBUS_OF depend on HAS_IOMEM 2023-08-04 15:39:39 +02:00
Makefile char: xillybus: Add driver for XillyUSB (Xillybus variant for USB) 2021-05-27 14:07:41 +02:00
xillybus.h char: xillybus: Eliminate redundant wrappers to DMA related calls 2021-10-05 16:11:11 +02:00
xillybus_class.c char: xillybus: make xillybus_class a static const structure 2023-06-23 10:27:26 +02:00
xillybus_class.h char: xillybus: Move class-related functions to new xillybus_class.c 2021-05-27 14:07:41 +02:00
xillybus_core.c char: xillybus: Eliminate redundant wrappers to DMA related calls 2021-10-05 16:11:11 +02:00
xillybus_of.c char: xillybus: Eliminate redundant wrappers to DMA related calls 2021-10-05 16:11:11 +02:00
xillybus_pcie.c char: xillybus: Eliminate redundant wrappers to DMA related calls 2021-10-05 16:11:11 +02:00
xillyusb.c char: xillybus: Prevent use-after-free due to race condition 2022-11-11 10:32:41 +01:00