mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
669d51f8f4
Structures that have a single element array as the last field can be mistaken as a "flex array". We could replace all the single element arrays in the structure with single element fields, but this driver prefers to follow the ITU-T H.265 specification, which defines it as an array. If we introduce a new define N_HRD_PARAMS, we make clear our intentions. This fixes this cocci warning: drivers/media/platform/allegro-dvt/nal-hevc.h:102:14-22: 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> Reviewed-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: fix typo in subject and commit log] |
||
---|---|---|
.. | ||
allegro-core.c | ||
allegro-mail.c | ||
allegro-mail.h | ||
Kconfig | ||
Makefile | ||
nal-h264.c | ||
nal-h264.h | ||
nal-hevc.c | ||
nal-hevc.h | ||
nal-rbsp.c | ||
nal-rbsp.h |