[0/8] Make several Kconfig options depend on HAS_IOMEM

Message ID 20230707135852.24292-1-bhe@redhat.com
Headers
Series Make several Kconfig options depend on HAS_IOMEM |

Message

Baoquan He July 7, 2023, 1:58 p.m. UTC
  In thread of one patch posting, LKP test robot reported some compiling
errors, paste the LKP report link here: 

https://lore.kernel.org/all/202306211329.ticOJCSv-lkp@intel.com/T/#u

In the config file, several Kconfig options are like below:
------
'# CONFIG_PCI is not set'
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_DMA_DECLARE_COHERENT=y
------

The reason is (words arranged from Niklas):
===
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.

So make several Kconfig options depend on HAS_IOMEM so that it won't
build in those driver code if PCI is unset.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/

Baoquan He (8):
  idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
  char: xillybus: make XILLYBUS_OF depend on HAS_IOMEM
  misc: open-dice: make OPEN_DICE depend on HAS_IOMEM
  pcmcia : make PCMCIA depend on HAS_IOMEM
  net: altera-tse: make ALTERA_TSE depend on HAS_IOMEM
  irqchip/al-fic: make AL_FIC depend on HAS_IOMEM
  clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
  of: make OF_EARLY_FLATTREE depend on HAS_IOMEM

 drivers/char/xillybus/Kconfig       | 2 +-
 drivers/clk/Kconfig                 | 1 +
 drivers/dma/Kconfig                 | 2 ++
 drivers/irqchip/Kconfig             | 1 +
 drivers/misc/Kconfig                | 1 +
 drivers/net/ethernet/altera/Kconfig | 1 +
 drivers/of/Kconfig                  | 2 +-
 drivers/pcmcia/Kconfig              | 1 +
 8 files changed, 9 insertions(+), 2 deletions(-)
  

Comments

Vinod Koul July 11, 2023, 4:43 p.m. UTC | #1
On Fri, 07 Jul 2023 21:58:44 +0800, Baoquan He wrote:
> In thread of one patch posting, LKP test robot reported some compiling
> errors, paste the LKP report link here:
> 
> https://lore.kernel.org/all/202306211329.ticOJCSv-lkp@intel.com/T/#u
> 
> In the config file, several Kconfig options are like below:
> ------
> '# CONFIG_PCI is not set'
> CONFIG_OF_EARLY_FLATTREE=y
> CONFIG_DMA_DECLARE_COHERENT=y
> ------
> 
> [...]

Applied, thanks!

[1/8] idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM
      commit: 33629b377856fe5722a2a813b83d21e88281d474

Best regards,