diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2024-08-19 19:27:11 -0600 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-21 17:15:43 -0700 |
commit | 488d34643ec3f4ce5ce120846fc81412534e9af1 (patch) | |
tree | 17d7f5e0cef664bf7525573c4b548a8356c3513d | |
parent | d785ed945de6955361aafc2d540d9bb7c6a69a65 (diff) | |
download | linux-488d34643ec3f4ce5ce120846fc81412534e9af1.tar.gz linux-488d34643ec3f4ce5ce120846fc81412534e9af1.tar.bz2 linux-488d34643ec3f4ce5ce120846fc81412534e9af1.zip |
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]
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/ZsPw7+6vNoS651Cb@elsanto
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/nfc/pn533/usb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nfc/pn533/usb.c b/drivers/nfc/pn533/usb.c index a187f0e0b0f7..ffd7367ce119 100644 --- a/drivers/nfc/pn533/usb.c +++ b/drivers/nfc/pn533/usb.c @@ -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 { |