]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: pci: cx18: Use flex arrays for struct cx18_scb
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 27 May 2024 21:08:55 +0000 (21:08 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 31 May 2024 11:51:16 +0000 (13:51 +0200)
commit63916c3dec9b07f0a69a3c4a9722d7ec3ba9da23
treeaa46095815b6772fbb698c9d6d61f8d07fc4bc11
parenta93506f670de9fe57e40e18e32c84e73121bca55
media: pci: cx18: Use flex arrays for struct cx18_scb

Replace the old-style single element array with a flexible array.
This structure does not seem to be allocated in the code, so there is no
need to change anything else.

The following cocci warning is fixed:
drivers/media/pci/cx18/cx18-scb.h:261:22-29: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/cx18/cx18-scb.h