summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDetlev Casanova <detlev.casanova@collabora.com>2026-04-02 10:06:36 -0400
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-05-04 09:31:04 +0200
commit166ea048d9a3ae29248ed1ce0761b975bced76e0 (patch)
tree3754ec37e5083420f4eb91ac8a41245c3d7cbf0a /include/linux
parente0f5d6ae76423ec5b6f97c7c3e1f02187b988afd (diff)
media: rkvdec: Introduce a global bitwriter helper
The use of structures with bitfields is good when the values are somewhat aligned. More mis-alignement means that compilers need to do more gymnastics to edit the fields values. Some cases have been reported with CLang on specific architectures like armhf and hexagon, where the compiler would allocate a bigger local stack than needed or even completely freeze during compilation. Some fixes have been provided to ease the issues, but the real fix here is to use a bitwriter instead of heavily unaligned bitfields. This is a preparation commit to provide a global bitwriter interface for the whole driver. Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions