Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: add dependency on HAS_IOMEM to MDIO_BUS_MUX_MMIOREG

On UML builds, mdio-mux-mmioreg.c fails to compile:

drivers/net/phy/mdio-mux-mmioreg.c:50:3: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]
drivers/net/phy/mdio-mux-mmioreg.c:63:3: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]

This is due to CONFIG_OF now being user selectable. Add a dependency on
HAS_IOMEM to fix this.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rob Herring and committed by
David S. Miller
cfa52005 aa43c5ff

+1 -1
+1 -1
drivers/net/phy/Kconfig
··· 191 191 192 192 config MDIO_BUS_MUX_MMIOREG 193 193 tristate "Support for MMIO device-controlled MDIO bus multiplexers" 194 - depends on OF_MDIO 194 + depends on OF_MDIO && HAS_IOMEM 195 195 select MDIO_BUS_MUX 196 196 help 197 197 This module provides a driver for MDIO bus multiplexers that