* Build warning on drivers/acpi/tables.c:399
@ 2025-04-23 7:22 Anshuman Khandual
0 siblings, 0 replies; only message in thread
From: Anshuman Khandual @ 2025-04-23 7:22 UTC (permalink / raw)
To: linux-kernel@vger.kernel.org, linux-acpi
Cc: Rafael J. Wysocki, Len Brown, Linus Torvalds
Hello,
Getting the following build warning with native arm64 gcc (Debian 10.2.1-6) 10.2.1
20210110 and with arm64 cross compiler as well.
drivers/acpi/tables.c:399:1: warning: ‘nonstring’ attribute ignored on objects of type ‘const char[][4]’ [-Wattributes]
399 | static const char table_sigs[][ACPI_NAMESEG_SIZE] __initconst __nonstring = {
| ^~~~~~
This is caused by a recent commit 4b4bd8c50f48 ("gcc-15: acpi: sprinkle random
'__nonstring' crumbles around"). Should that __nonstring attribute for table_sigsp[][]
be dropped off ? Apparently __nonstring attribute only applies for character arrays but
not applicable for arrays of character arrays.
- Anshuman
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-23 7:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 7:22 Build warning on drivers/acpi/tables.c:399 Anshuman Khandual
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).