Re: [PATCH] pinctrl: zynq: add CONFIG_OF dependency
From: Linus Walleij
Date: Tue Jun 24 2025 - 15:23:31 EST
On Fri, Jun 20, 2025 at 3:08 PM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The zynq driver can be enabled for compile-testing on builds without
> CONFIG_OF, leading to a link error:
>
> ld.lld-21: error: undefined symbol: pinconf_generic_dt_node_to_map
> referenced by pinconf-generic.h:231 (/home/arnd/arm-soc/include/linux/pinctrl/pinconf-generic.h:231)
> drivers/pinctrl/pinctrl-zynq.o:(pinconf_generic_dt_node_to_map_all) in archive vmlinux.a
>
> Prevent this with the proper compile time dependency.
>
> Fixes: 1982621decaf ("pinctrl: Allow compile testing for K210, TB10X and ZYNQ")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Patch applied!
Yours,
Linus Walleij