]> www.infradead.org Git - users/dwmw2/linux.git/commit
gcc-15: acpi: sprinkle random '__nonstring' crumbles around
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 20 Apr 2025 18:02:18 +0000 (11:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 20 Apr 2025 18:57:54 +0000 (11:57 -0700)
commit4b4bd8c50f4836ba7d3fcfd6c90f96d2605779fe
tree420f28060720d24630f4b804f57d8cfdc181794a
parentd5d45a7f26194460964eb5677a9226697f7b7fdd
gcc-15: acpi: sprinkle random '__nonstring' crumbles around

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.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/acpica/aclocal.h
drivers/acpi/acpica/nsrepair2.c
drivers/acpi/tables.c
include/acpi/actbl.h