summaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2022-02-04 17:29:06 -0600
committerDavid S. Miller <davem@davemloft.net>2022-02-05 15:30:32 +0000
commit5f2155132c5b9dbbf842db134a48407e5aad0958 (patch)
tree993c4b0256bdcb2604e9896cfc57059d3b959aaf /drivers/ssb
parent76ad950c8fd7a4625908c679374f70d22272dfb3 (diff)
downloadlinux-5f2155132c5b9dbbf842db134a48407e5aad0958.tar.bz2
net: sundance: Replace one-element array with non-array object
It seems this one-element array is not actually being used as an array of variable size, so we can just replace it with just a non-array object of type struct desc_frag and refactor a bit the rest of the code. This helps with the ongoing efforts to globally enable -Warray-bounds and get us closer to being able to tighten the FORTIFY_SOURCE routines on memcpy(). This issue was found with the help of Coccinelle and audited and fixed, manually. [1] https://en.wikipedia.org/wiki/Flexible_array_member [2] https://www.kernel.org/doc/html/v5.16/process/deprecated.html#zero-length-and-one-element-arrays Link: https://github.com/KSPP/linux/issues/79 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ssb')
0 files changed, 0 insertions, 0 deletions