Linux GPIO subsystem development
 help / color / mirror / Atom feed
* Compile failure on drivers/pinctrl/core.c since 6.6.148
@ 2026-12-03 16:41 preed via Bugspray Bot
  2026-12-03 16:41 ` preed via Bugspray Bot
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: preed via Bugspray Bot @ 2026-12-03 16:41 UTC (permalink / raw)
  To: linux-gpio

preed writes via Kernel.org Bugzilla:

I have been unable to successfully compile the 6.6 kernel series with the attached config since 6.6.148; 6.6.147 builds fine, but 6.6.148 fails with:


  CC      drivers/pinctrl/core.o
drivers/pinctrl/core.c: In function ‘pinctrl_gpio_direction_input’:
drivers/pinctrl/core.c:886:41: error: invalid use of undefined type ‘struct gpio_chip’
  886 |         return pinctrl_gpio_direction(gc->base + offset, true);
      |                                         ^~
drivers/pinctrl/core.c: In function ‘pinctrl_gpio_direction_output’:
drivers/pinctrl/core.c:901:41: error: invalid use of undefined type ‘struct gpio_chip’
  901 |         return pinctrl_gpio_direction(gc->base + offset, false);
      |


I bisected the build failure and it looks to be related to:

f53dd26462b8ecc418421fc972f5fb57b90597aa is the first 'bad' commit
commit f53dd26462b8ecc418421fc972f5fb57b90597aa
Author: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Date:   Tue Jul 28 08:11:24 2026 -0400

    pinctrl: remove pinctrl_gpio_direction_output()

    [ Upstream commit 45d2055b0067739253883dc541f37c86aad45c92 ]

    There are no more users of pinctrl_gpio_direction_output() so remove it.

    Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
    Acked-by: Linus Walleij <linus.walleij@linaro.org>
    Stable-dep-of: d3e91a95b2b0 ("gpio: tegra: do not call pinctrl for GPIO direction")
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

I use |make oldconfig| to build new kernel versions; it's possible my config is invalid, however I did attempt to re-create a config in a 6.6.148 build tree with |make menuconfig|; that's the attached config, and it still errors.

View: https://bugzilla.kernel.org/show_bug.cgi?id=222122#c0
You can reply to this message to join the discussion.
-- 
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-03 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 16:41 Compile failure on drivers/pinctrl/core.c since 6.6.148 preed via Bugspray Bot
2026-12-03 16:41 ` preed via Bugspray Bot
2026-12-03 16:41 ` preed via Bugspray Bot
2026-12-03 16:41 ` Artem S. Tashkinov via Bugspray Bot
2026-12-03 16:41 ` Artem S. Tashkinov via Bugspray Bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox