Build warning on drivers/acpi/tables.c:399

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux