]> www.infradead.org Git - users/dwmw2/linux.git/commit
sched: act_ct: avoid -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 9 Aug 2024 15:22:12 +0000 (09:22 -0600)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Aug 2024 00:54:24 +0000 (17:54 -0700)
commite2d0fadd703c3a3a6ebe318ec82ea64c08d709c2
tree7a3527b0b320497a38c5357be27a9564dd87b8e4
parente96f6fd30eec4ba6e2ff7f855f24b552c5853b06
sched: act_ct: 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.

Remove unnecessary flex-array member `pad[]` and refactor the related
code a bit.

Fix the following warning:
net/sched/act_ct.c:57:29: 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://patch.msgid.link/ZrY0JMVsImbDbx6r@cute
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/act_ct.c