mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
platform/x86: Avoid -Wflex-array-member-not-at-end warning
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Move the conflicting declaration to the end of the structure. Notice that `struct acpi_resource_irq` is a flexible structure --a structure that contains a flexible-array member. Fix the following warning: drivers/platform/x86/sony-laptop.c:3330:41: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/Z-WlhL_tAP11M02G@kspp Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
This commit is contained in:
parent
0af2f6be1b
commit
a62372b6c9
|
|
@ -3327,8 +3327,10 @@ struct sony_pic_ioport {
|
|||
};
|
||||
|
||||
struct sony_pic_irq {
|
||||
struct acpi_resource_irq irq;
|
||||
struct list_head list;
|
||||
|
||||
/* Must be last --ends in a flexible-array member. */
|
||||
struct acpi_resource_irq irq;
|
||||
};
|
||||
|
||||
struct sonypi_eventtypes {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user