------- Comment From vasily.gorbik@de.ibm.com 2023-03-27 12:21 EDT------- Neither the gcc 13 nor the kernel built with it have been sufficiently tested for any use other than pure development needs. The '-Warray-bounds' warnings are explicitly disabled in the kernel for gcc 11 and 12. It is yet unclear how '-Warray-bounds' will be handled for gcc 13 because it has not been released yet. We do not know if other architectures will have to disable it or if it will only apply to s390. In other words, support for gcc 13 in the kernel has not been settled yet, and it will most likely be changed like the patch attached. The '-Warray-bounds' warning is more problematic for s390 due to the way our architecture-specific lowcore is accessed. The particular build error you encountered stands out from array-bounds warnings, but that is only because the MTK_T7XX driver is using 'ccflags-y += -Werror.' Disabling the '-Warray-bounds' warning also addresses that issue. However, I do not know the reasons for your early adoption of gcc 13. I noticed that there are already gcc 13 build-specific patches available. [ 245s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.kernel.org/6.2.3-662-gcc-plugins-drop-std-gnu-11-to-fix-GCC-13-build.patch If urgent and if desired, you could pick up the attached patch until it is superseded by kernel changes later.