meta-freescale/recipes-kernel/linux/linux-imx-headers
Max Krummenacher f5516c2fcd linux-imx-headers: make uapi ipu.h, pxp_dma.h compatible with c23 standard
In C23 bool, false and true are reserved keywords.
Make ipu.h, pxp_dma.h uapi include file compatible with C23 standard.

The ipu.h header is i.e. used in the imx-gst1.0-plugin code.
If building with GCC 15 the build fails.

FAILED: libs/libgstfsl-1.0.so.0.0.0.p/v4l2_core_gstimxv4l2.c.o
...imx-gst1.0-plugin/4.9.2+git/recipe-sysroot/usr/include/imx/linux/ipu.h:32:23: error: 'bool' cannot be defined via 'typedef'
   32 | typedef unsigned char bool;

That pxp_dma.h is affected was found with grep. A configuration which
actually includes the file is yet to be found.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2025-05-12 15:50:19 +02:00
..
0001-video-fbdev-mxc-make-uapi-ipu.h-pxp_dma.h-compatible.patch linux-imx-headers: make uapi ipu.h, pxp_dma.h compatible with c23 standard 2025-05-12 15:50:19 +02:00