WSL2-Linux-Kernel/drivers
Gustavo A. R. Silva e90644b0ce scsi: lpfc: Replace one-element array with flexible-array member
One-element arrays are deprecated, and we are replacing them with flexible
array members instead. So, replace one-element arrays with flexible-array
members in a couple of structures, and refactor the rest of the code,
accordingly.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy() and help us make progress towards globally enabling
-fstrict-flex-arrays=3 [1].

This results in no differences in binary output.

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/295
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/6c6dcab88524c14c47fd06b9332bd96162656db5.1684358315.git.gustavoars@kernel.org
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-05-22 18:02:02 -04:00
..
accel
accessibility
acpi ACPI: video: Remove acpi_backlight=video quirk for Lenovo ThinkPad W530 2023-05-04 20:23:41 +02:00
amba
android
ata scsi: ata: libata: Handle completion of CDL commands using policy 0xD 2023-05-22 17:05:20 -04:00
atm
auxdisplay
base
bcma
block for-6.4/io_uring-2023-05-07 2023-05-07 10:00:09 -07:00
bluetooth
bus
cdrom
cdx
char
clk A couple more patches that would be good to get into -rc1. 2023-05-07 10:31:45 -07:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto This push fixes the following problems: 2023-05-07 10:57:14 -07:00
cxl
dax
dca
devfreq
dio
dma dmaengine updates for v6.4 2023-05-03 11:11:56 -07:00
dma-buf
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio hte: Changes for v6.4-rc1 2023-05-03 11:00:27 -07:00
gpu drm fixes part 2 for 6.4-rc1 2023-05-05 11:49:22 -07:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c i2c: gxp: fix build failure without CONFIG_I2C_SLAVE 2023-05-03 17:27:29 +02:00
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
leds
macintosh
mailbox - mailbox api: allow direct registration to a channel 2023-05-07 10:17:33 -07:00
mcb
md Merge patch series "Use block pr_ops in LIO" 2023-05-22 16:35:02 -04:00
media
memory
memstick
message
mfd
misc
mmc
most
mtd This pull request contains updates for UBI and UBIFS 2023-05-03 18:58:59 -07:00
mux
net Including fixes from netfilter. 2023-05-05 19:12:01 -07:00
nfc
ntb
nubus
nvdimm
nvme Merge patch series "Use block pr_ops in LIO" 2023-05-22 16:35:02 -04:00
nvmem
of Devicetree fixes for 6.4, part 1: 2023-05-05 13:27:59 -07:00
opp
parisc parisc: Replace regular spinlock with spin_trylock on panic path 2023-05-03 17:43:26 +02:00
parport
pci
pcmcia
peci
perf
phy phy fixes for 6.4 2023-05-05 11:57:29 -07:00
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm pwm: Changes for v6.4-rc1 2023-05-03 11:25:01 -07:00
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 Merge patch series "Use block pr_ops in LIO" 2023-05-22 16:35:02 -04:00
sbus
scsi scsi: lpfc: Replace one-element array with flexible-array member 2023-05-22 18:02:02 -04:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target Merge patch series "Use block pr_ops in LIO" 2023-05-22 16:35:02 -04:00
tc
tee
thermal thermal: intel: powerclamp: Fix NULL pointer access issue 2023-05-04 20:30:18 +02:00
thunderbolt
tty
ufs scsi: ufs: core: Return earlier if ufshcd_hba_init_crypto_capabilities() fails 2023-05-22 17:26:09 -04:00
uio
usb
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog linux-watchdog 6.4-rc1 tag 2023-05-04 18:33:56 -07:00
xen
zorro
Kconfig
Makefile