linux-yocto/6.6: fix tiny build
PATCH 1/1 linux-yocto/6.6: fix tiny build
From: Bruce Ashfield <[email protected]>
Integrating the following commit(s) to linux-yocto/6.6:
1/1 [
Author: Bruce Ashfield
Email: [email protected]
Subject: pinctrl: core: include gpio/driver.h for struct gpio_chip
Date: Tue, 18 Aug 2026 14:34:22 -0400
Stable commit f53dd26462b8e ("pinctrl: remove pinctrl_gpio_direction_output()") [ upstream 45d2055b0067 ] changed pinctrl_gpio_direction_input/output() to take a struct gpio_chip * and dereference gc->base. Those functions are compiled unconditionally, but in 6.6 core.c the struct gpio_chip definition is only pulled in via "../gpio/gpiolib.h" under #ifdef CONFIG_GPIOLIB. Configurations with CONFIG_PINCTRL=y and CONFIG_GPIOLIB=n (e.g. linux-yocto-tiny on x86, built with --allnoconfig) therefore fail to build:
drivers/pinctrl/core.c: error: invalid use of undefined type 'struct gpio_chip'
Include <linux/gpio/driver.h> directly so struct gpio_chip is always a complete type, matching how mainline core.c has included it since commit ec963d04ca865 ("pinctrl: provide new GPIO-to-pinctrl glue helpers"), present in 6.12/6.18 but not 6.6.
]
--- .../linux/linux-yocto-rt_6.6.bb | 4 ++-- .../linux/linux-yocto-tiny_6.6.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto_6.6.bb | 24 +++++++++---------- 3 files changed, 16 insertions(+), 16 deletions(-)
meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb +2 -2
@@ -14,8 +14,8 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "c0f2d7109571c01223cbd3738db96b5ea20ddc68" -SRCREV_meta ?= "b768be4d32d53a825349353e988ca5930e83f99c" +SRCREV_machine ?= "eaa4bfd4f99ab0f3cf46ec5a207b73e22fb1c3f9" +SRCREV_meta ?= "dd201eb6ec53179f45836d41610ca68c725d28e2" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https"
meta/recipes-kernel/linux/linux-yocto-tiny_6.6.bb +2 -2
@@ -17,8 +17,8 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine ?= "20c2ecb592178ed51039ae1a75a523c66c1eee5d" -SRCREV_meta ?= "b768be4d32d53a825349353e988ca5930e83f99c" +SRCREV_machine ?= "c51e01ecff210644b5d199a4edb30cb1a94a746f" +SRCREV_meta ?= "dd201eb6ec53179f45836d41610ca68c725d28e2" PV = "${LINUX_VERSION}+git"
meta/recipes-kernel/linux/linux-yocto_6.6.bb +12 -12
@@ -18,18 +18,18 @@ KBRANCH:qemux86-64 ?= "v6.6/standard/base" KBRANCH:qemuloongarch64 ?= "v6.6/standard/base" KBRANCH:qemumips64 ?= "v6.6/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "06b8a8a900edeb9770128b2e25e7814ff0638c72" -SRCREV_machine:qemuarm64 ?= "bcdc0007d72899e94de35713c4c18e0ad581f41b" -SRCREV_machine:qemuloongarch64 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemumips ?= "9023f83c1acc4010d43c5891c641a671a12d264e" -SRCREV_machine:qemuppc ?= "a76593fcb6c3b2183877d531562237a9def7acc5" -SRCREV_machine:qemuriscv64 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemuriscv32 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemux86 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemux86-64 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemumips64 ?= "50376ca9492c97cc4d6d291d06e52db021aeb1f1" -SRCREV_machine ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_meta ?= "b768be4d32d53a825349353e988ca5930e83f99c" +SRCREV_machine:qemuarm ?= "ed7cf749dcade8ded9fda05be53c235a446dcbff" +SRCREV_machine:qemuarm64 ?= "b96d2d770cab02b84c46606fa538ce027bee6b08" +SRCREV_machine:qemuloongarch64 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemumips ?= "fcfa6f13ad7894cedda5f59124e7a6f6f0100a67" +SRCREV_machine:qemuppc ?= "89811e5148d2a4c925940684ad9126bd08de9799" +SRCREV_machine:qemuriscv64 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemuriscv32 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemux86 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemux86-64 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemumips64 ?= "b6dc41bac21f990565fffb211d470fdc97533291" +SRCREV_machine ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_meta ?= "dd201eb6ec53179f45836d41610ca68c725d28e2" # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll # get the <version>/base branch, which is pure upstream -stable, and the same
Signature · 1 line
2.43.0
Quoted 40 lines · Bruce Ashfield via lists.openembedded.org
From: Bruce Ashfield <[email protected]>
Integrating the following commit(s) to linux-yocto/6.6:
1/1 [
Author: Bruce Ashfield
Email: [email protected]
Subject: pinctrl: core: includegpio/driver.hfor structgpio_chip
Date: Tue, 18 Aug 2026 14:34:22 -0400Stable commit
f53dd26462b8e("pinctrl: removepinctrl_gpio_direction_output()") [ upstream45d2055b0067] changed pinctrl_gpio_direction_input/output() to take a structgpio_chip* and dereferencegc->base. Those functions are compiled unconditionally, but in 6.6core.cthe structgpio_chipdefinition is only pulled in via "../gpio/gpiolib.h" under #ifdefCONFIG_GPIOLIB. Configurations withCONFIG_PINCTRL=yandCONFIG_GPIOLIB=n(e.g. linux-yocto-tiny on x86, built with --allnoconfig) therefore fail to build:
drivers/pinctrl/core.c: error: invalid use of undefined type 'structgpio_chip'Include <
linux/gpio/driver.h> directly so structgpio_chipis always a complete type, matching how mainlinecore.chas included it since commitec963d04ca865("pinctrl: provide new GPIO-to-pinctrl glue helpers"), present in 6.12/6.18 but not 6.6.Signed-off-by Bruce Ashfield <[email protected]>]
Signed-off-by Bruce Ashfield <[email protected]>--- .../linux/linux-yocto-rt_6.6.bb | 4 ++-- .../linux/linux-yocto-tiny_6.6.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto_6.6.bb | 24 +++++++++---------- 3 files changed, 16 insertions(+), 16 deletions(-)meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb +0
-0
meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb python () { · line 18
Quoted 7 lines
meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb +2
-2@@ -14,8 +14,8 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "c0f2d7109571c01223cbd3738db96b5ea20ddc68" -SRCREV_meta ?= "b768be4d32d53a825349353e988ca5930e83f99c" +SRCREV_machine ?= "eaa4bfd4f99ab0f3cf46ec5a207b73e22fb1c3f9" +SRCREV_meta ?= "dd201eb6ec53179f45836d41610ca68c725d28e2"
Hello Bruce,
If I'm not mistaken, this patch does not apply on top of your 6.6.150 upgrade[0] but on top of a 6.6.151 upgrade that you did not sent (unless I missed it). We saw the 6.6.151 upgrade here:
https://git.yoctoproject.org/linux-yocto/log/?h=v6.6/standard/base
Can you send a series with 6.6.150, 6.6.151 and the tiny fix on top?
Thanks!
[0]: https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/
Quoted 53 lines
meta/recipes-kernel/linux/linux-yocto-rt_6.6.bb +0
-0SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine;protocol=https \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.6;destsuffix=${KMETA};protocol=https"meta/recipes-kernel/linux/linux-yocto-tiny_6.6.bb +2
-2@@ -17,8 +17,8 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine ?= "20c2ecb592178ed51039ae1a75a523c66c1eee5d" -SRCREV_meta ?= "b768be4d32d53a825349353e988ca5930e83f99c" +SRCREV_machine ?= "c51e01ecff210644b5d199a4edb30cb1a94a746f" +SRCREV_meta ?= "dd201eb6ec53179f45836d41610ca68c725d28e2" PV = "${LINUX_VERSION}+git"meta/recipes-kernel/linux/linux-yocto_6.6.bb +12
-12@@ -18,18 +18,18 @@ KBRANCH:qemux86-64 ?= "v6.6/standard/base" KBRANCH:qemuloongarch64 ?= "v6.6/standard/base" KBRANCH:qemumips64 ?= "v6.6/standard/mti-malta64" -SRCREV_machine:qemuarm ?= "06b8a8a900edeb9770128b2e25e7814ff0638c72" -SRCREV_machine:qemuarm64 ?= "bcdc0007d72899e94de35713c4c18e0ad581f41b" -SRCREV_machine:qemuloongarch64 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemumips ?= "9023f83c1acc4010d43c5891c641a671a12d264e" -SRCREV_machine:qemuppc ?= "a76593fcb6c3b2183877d531562237a9def7acc5" -SRCREV_machine:qemuriscv64 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemuriscv32 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemux86 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemux86-64 ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_machine:qemumips64 ?= "50376ca9492c97cc4d6d291d06e52db021aeb1f1" -SRCREV_machine ?= "491a3d5683a61ca2a7911f748661cfad50b8d05c" -SRCREV_meta ?= "b768be4d32d53a825349353e988ca5930e83f99c" +SRCREV_machine:qemuarm ?= "ed7cf749dcade8ded9fda05be53c235a446dcbff" +SRCREV_machine:qemuarm64 ?= "b96d2d770cab02b84c46606fa538ce027bee6b08" +SRCREV_machine:qemuloongarch64 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemumips ?= "fcfa6f13ad7894cedda5f59124e7a6f6f0100a67" +SRCREV_machine:qemuppc ?= "89811e5148d2a4c925940684ad9126bd08de9799" +SRCREV_machine:qemuriscv64 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemuriscv32 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemux86 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemux86-64 ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_machine:qemumips64 ?= "b6dc41bac21f990565fffb211d470fdc97533291" +SRCREV_machine ?= "5ae544e1312ed5b4ed130d22ff1f44333494c4c3" +SRCREV_meta ?= "dd201eb6ec53179f45836d41610ca68c725d28e2" # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll # get the <version>/base branch, which is pure upstream -stable, and the same
Signature · 2 lines
Yoann Congal Smile ECS