]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: media: tegra-vde: Manually pack UAPI structures
authorDmitry Osipenko <digetx@gmail.com>
Sun, 2 Jun 2019 21:37:10 +0000 (17:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 21:24:05 +0000 (17:24 -0400)
commit5c08e2b662c6a49d3831039ee493208b1403842e
tree8703d5504d72baa5e3ce5bd417c296dc59519ab9
parenta400b3b87ea25468b6e5d98d614b228a05a3c6d0
media: staging: media: tegra-vde: Manually pack UAPI structures

The __packed macro isn't available in userspace with the kernel headers.
Checkpatch asks to use the macro, which is unwanted in a case of a UAPI
header. There is no much benefit in a tight packing of the structures,
hence let's pack them manually to cleanup things a tad. Note that there
is no old-stable userspace that will suffer from this change, hence it's
fine to change the ABI. In a result also more space is reserved for a
possible future expansion of the UAPI as it was already shown that more
fields will be needed for a later SoC generations.

Suggested-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/tegra-vde/tegra-vde.c
drivers/staging/media/tegra-vde/uapi.h