On Sun, Apr 20, 2025 at 11:02:18AM -0700, Linus Torvalds wrote: > This is not great: I'd much rather introduce a typedef that is a "ACPI > name byte buffer", and use that to mark these special 4-byte ACPI names > that do not use NUL termination. > > But as noted in the previous commit ("gcc-15: make 'unterminated string > initialization' just a warning") gcc doesn't actually seem to support > that notion, so instead you have to just mark every single array > declaration individually. > > So this is not pretty, but this gets rid of the bulk of the annoying > warnings during an allmodconfig build for me. > With gcc 13.3: Building i386:defconfig ... failed -------------- Error log: drivers/acpi/tables.c:399:1: error: 'nonstring' attribute ignored on objects of type 'const char[][4]' [-Werror=attributes] 399 | static const char table_sigs[][ACPI_NAMESEG_SIZE] __initconst __nonstring = { Guenter