Re: [PATCH] pinctrl: fix CONFIG_PINCTRL=n build failure
From: Linus Walleij
Date: Fri Sep 25 2026 - 12:14:55 EST
On Fri, Sep 25, 2026 at 3:00 PM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> If pinctrl/consumer.h is included before linux/errno.h, the missing
> error number macros cause a build failure:
>
> In file included from drivers/gpu/drm/tilcdc/tilcdc_drv.c:9:
> include/linux/pinctrl/consumer.h:110:10: error: use of undeclared identifier 'ENOTSUPP'
> 110 | return -ENOTSUPP;
> | ^~~~~~~~
>
> Include linux/errno.h indirectly.
>
> Fixes: b44aec87658e ("pinctrl: make the CONFIG_PINCTRL=n gpio config stubs return -ENOTSUPP")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
I think this is already fixed by:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/commit/?id=c2d996d9c6dab31ae41d19507c2b7ef8dbc14602
But thanks!
Yours,
Linus Walleij