summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathew McBride <[email protected]>2026-05-01 11:36:02 +1000
committerPeng Fan <[email protected]>2026-05-06 16:04:48 +0800
commitd360217d4a3536b022aadbd887a26573c3f01852 (patch)
treeb8a894ea1bc0d85f2e0a2d4fe2db186075f51ffa /src
parentaedaa8250b1fa7a885fb63c683cb3757e831d838 (diff)
arm: gpio: include integer type definitions for gpio.h
Both consumers and sub-arch specific versions of gpio.h may reference stdint or other non-C90 type definitions. Ensure the common ones are available by including linux/types.h before any other headers. This issue came to light when the usb onboard hub driver was enabled for ten64_tfa_defconfig: In file included from ./arch/arm/include/asm/gpio.h:2, from common/usb_onboard_hub.c:10: ./arch/arm/include/asm/arch/gpio.h:17:9: error: unknown type name 'ulong' 17 | ulong addr; ./arch/arm/include/asm/arch/gpio.h:18:9: error: unknown type name 'ulong' 18 | ulong size; ./arch/arm/include/asm/arch/gpio.h:19:9: error: unknown type name 'uint' 19 | uint ngpios; (In this instance, the cited errors actually originate from arch/arm/include/asm/arch-fsl-layerscape/gpio.h, which is included by the arm top level asm/gpio.h) Implemented as per suggestion from Quentin Schulz in Link: Signed-off-by: Mathew McBride <[email protected]> Link: https://lore.kernel.org/u-boot/[email protected]/ Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions