summaryrefslogtreecommitdiff
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2024-05-28 00:08:55 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-05-31 14:51:16 +0300
commit63916c3dec9b07f0a69a3c4a9722d7ec3ba9da23 (patch)
treeaa46095815b6772fbb698c9d6d61f8d07fc4bc11 /drivers/media/pci
parenta93506f670de9fe57e40e18e32c84e73121bca55 (diff)
downloadlinux-63916c3dec9b07f0a69a3c4a9722d7ec3ba9da23.tar.xz
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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/cx18/cx18-scb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx18/cx18-scb.h b/drivers/media/pci/cx18/cx18-scb.h
index f7105421dd25..841edc0712ab 100644
--- a/drivers/media/pci/cx18/cx18-scb.h
+++ b/drivers/media/pci/cx18/cx18-scb.h
@@ -258,7 +258,7 @@ struct cx18_scb {
struct cx18_mailbox ppu2epu_mb;
struct cx18_mdl_ack cpu_mdl_ack[CX18_MAX_STREAMS][CX18_MAX_MDL_ACKS];
- struct cx18_mdl_ent cpu_mdl[1];
+ struct cx18_mdl_ent cpu_mdl[];
};
void cx18_init_scb(struct cx18 *cx);