aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorRicardo Ribalda <[email protected]>2024-05-27 21:08:51 +0000
committerHans Verkuil <[email protected]>2024-05-31 13:51:16 +0200
commit669d51f8f45db35a5e44101b90fcc7173088ad28 (patch)
tree88212d2971a6814257577bab477ff54c723c7427 /tools/perf/scripts/python/sched-migration.py
parent6a4e6e34ceac24f4a17fb24fdca0e04c16ecfba5 (diff)
media: allegro: nal-hevc: Replace array[1] with array[N]
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 <[email protected]> Reviewed-by: Michael Tretter <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> [hverkuil: fix typo in subject and commit log]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions