The *.mod.c files are generated C files built as part of the module build. They didn't have a -std= set so far, so newer toolchains, module build failed, because true/false became keyworks in -std=c23.
Add an explicit -std=gnu11 to fix this. Signed-off-by: Ahmad Fatoum <[email protected]> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e3127ed2cb37..1a5f21b66ebb 100644 --- a/Makefile +++ b/Makefile @@ -468,7 +468,7 @@ PYTEST = $(if $(shell command -v labgrid-pytest 2>/dev/null),labgrid-pytest,pyt CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF) CFLAGS_KERNEL = AFLAGS_KERNEL = -CFLAGS_MODULE = -fshort-wchar +CFLAGS_MODULE = -fshort-wchar -std=gnu11 AFLAGS_MODULE = LDFLAGS_MODULE = -T common/module.lds -- 2.47.3
