Re: [PATCH] pinctrl: at91-pio4: Make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix build error

From: Linus Walleij
Date: Fri Dec 04 2020 - 03:55:59 EST


On Tue, Nov 24, 2020 at 10:17 AM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:

> If CONFIG_HAS_IOMEM is not set, devm_platform_ioremap_resource() will
> be not built in drivers/base/platform.c and then there exists a build
> error about undefined reference to "devm_platform_ioremap_resource"
> in pinctrl-at91-pio4.c under COMPILE_TEST and CONFIG_PINCTRL_AT91PIO4,
> make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix it.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>

Patch applied as non-critical fix for v5.11.

Yours,
Linus Walleij