aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2023-02-04 10:37:16 -0800
committerMartin K. Petersen <[email protected]>2023-02-21 22:00:50 -0500
commitc6f2e6b6eaaf883df482cb94f302acad9b80a2a4 (patch)
tree02d64ff9718b83f4a34525775e86fa15e5c6b848 /net/lapb/lapb_in.c
parentee4e7dfe4ffc9ca50c6875757bd119abfe22b5c5 (diff)
scsi: mpi3mr: Replace 1-element array with flex-array
Nothing else defined MPI3_NVME_ENCAP_CMD_MAX, so the "command" buffer was being defined as a fake flexible array of size 1. Replace this with a proper flex array. Avoids this GCC 13 warning under -fstrict-flex-arrays=3: In function 'fortify_memset_chk', inlined from 'mpi3mr_build_nvme_sgl' at ../drivers/scsi/mpi3mr/mpi3mr_app.c:693:2, inlined from 'mpi3mr_bsg_process_mpt_cmds.constprop' at ../drivers/scsi/mpi3mr/mpi3mr_app.c:1214:8: ../include/linux/fortify-string.h:430:25: warning: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Wattribute-warning] 430 | __write_overflow_field(p_size_field, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link: https://lore.kernel.org/r/[email protected] Cc: Sumit Saxena <[email protected]> Cc: Himanshu Madhani <[email protected]> Cc: "Martin K. Petersen" <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: kernel test robot <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions