nfc: pn533: Avoid -Wflex-array-member-not-at-end warnings
Subsystems (3)
PATCH 1/1 nfc: pn533: Avoid -Wflex-array-member-not-at-end warnings
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally.
Remove unnecessary flex-array member data[], and with this fix the following warnings:
drivers/nfc/pn533/usb.c:268:38: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/nfc/pn533/usb.c:275:38: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
--- drivers/nfc/pn533/usb.c | 1 - 1 file changed, 1 deletion(-)
drivers/nfc/pn533/usb.c +0 -1
@@ -254,7 +254,6 @@ struct pn533_acr122_ccid_hdr {* byte for reposnse msg */ u8 params[3 ]; -u8 data[];/* payload */ } __packed;struct pn533_acr122_apdu_hdr {
Signature · 1 line
2.34.1
Quoted 10 lines · Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally.
Remove unnecessary flex-array member
data[], and with this fix the following warnings:
drivers/nfc/pn533/usb.c:268:38: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]drivers/nfc/pn533/usb.c:275:38: 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 <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Mon, 19 Aug 2024 19:27:11 -0600 you wrote:
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally.
Remove unnecessary flex-array member
data[], and with this fix the following warnings:
drivers/nfc/pn533/usb.c:268:38: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]drivers/nfc/pn533/usb.c:275:38: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end][...]
Here is the summary with links:
- [next] nfc: pn533: Avoid -Wflex-array-member-not-at-end warnings
https://git.kernel.org/netdev/net-next/c/488d34643ec3
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html