linux-loongson/include/uapi/linux/dvb
Ricardo Ribalda 2abcd952e1 media: dvb: Fix dtvs_stats packing.
The structure is packed, which requires that all its fields need to be
also packed.

./include/uapi/linux/dvb/frontend.h:854:2: warning: field  within 'struct dtv_stats' is less aligned than 'union dtv_stats::(anonymous at ./include/uapi/linux/dvb/frontend.h:854:2)' and is usually due to 'struct dtv_stats' being packed, which can lead to unaligned accesses [-Wunaligned-access]

Explicitly set the inner union as packed.

Marking the inner union as 'packed' does not change the layout, since the
whole struct is already packed, it just silences the clang warning. See
also this llvm discussion:

https://github.com/llvm/llvm-project/issues/55520

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-04-15 13:42:38 +02:00
..
audio.h headers: Remove some left-over license text in include/uapi/linux/dvb/ 2022-12-07 17:58:46 +01:00
ca.h headers: Remove some left-over license text in include/uapi/linux/dvb/ 2022-12-07 17:58:46 +01:00
dmx.h headers: Remove some left-over license text in include/uapi/linux/dvb/ 2022-12-07 17:58:46 +01:00
frontend.h media: dvb: Fix dtvs_stats packing. 2024-04-15 13:42:38 +02:00
net.h headers: Remove some left-over license text in include/uapi/linux/dvb/ 2022-12-07 17:58:46 +01:00
osd.h headers: Remove some left-over license text in include/uapi/linux/dvb/ 2022-12-07 17:58:46 +01:00
version.h media: dvb: bump DVB API version 2023-05-14 16:05:28 +01:00
video.h headers: Remove some left-over license text in include/uapi/linux/dvb/ 2022-12-07 17:58:46 +01:00