[REGRESSION] upstream-mainline/master: (build) initializer-string for array of ‘char’ is too long [-Werror=unterm...

KernelCI bot bot at kernelci.org
Thu Mar 6 19:35:18 UTC 2025


Hello,

New build issue found on upstream-mainline/master:

---
 initializer-string for array of ‘char’ is too long
[-Werror=unterminated-string-initialization] in
drivers/gpu/drm/panthor/panthor_fw.o
(drivers/gpu/drm/panthor/panthor_fw.c)
[logspec:kbuild,kbuild.compiler.error]
---

- dashboard: https://d.kernelci.org/issue/redhat:89b66683928343b36d40dad54887077a02269f3a
- giturl: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
- commit HEAD:  848e076317446f9c663771ddec142d7c2eb4cb43


Log excerpt:
=====================================================
00:16:36 drivers/gpu/drm/panthor/panthor_fw.c:641:53: error:
initializer-string for array of ‘char’ is too long
[-Werror=unterminated-string-initialization]
00:16:36   641 |         const char git_sha_header[sizeof(header)] =
"git_sha: ";
00:16:36       |                                                     ^~~~~~~~~~~
00:16:36   CC [M]  drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.o
00:16:37   CC [M]  drivers/media/dvb-frontends/tda1004x.o
00:16:37   CC [M]  drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.o
00:16:37   CC [M]  drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.o
00:16:37   CC [M]  drivers/firmware/arm_scmi/transports/optee.o
00:16:37   CC [M]  drivers/gpu/drm/msm/adreno/a6xx_preempt.o
00:16:37   CC [M]  drivers/gpu/drm/nouveau/nvkm/subdev/i2c/nv4e.o
00:16:37 cc1: all warnings being treated as errors
00:16:37
=====================================================


# Builds where the incident occurred:

## olddefconfig on (aarch64):
- compiler: gcc (GCC) 15.0.1 20250228 (Red Hat 15.0.1-0)
- dashboard: https://d.kernelci.org/build/redhat:1702059263-aarch64-kernel


#kernelci issue redhat:89b66683928343b36d40dad54887077a02269f3a

Reported-by: kernelci.org bot <bot at kernelci.org>

--
This is an experimental report format. Please send feedback in!
Talk to us at kernelci at lists.linux.dev

Made with love by the KernelCI team - https://kernelci.org


More information about the dri-devel mailing list