linux/drivers/media/platform/vsp1
Kieran Bingham 3e737e3943 media: vsp1: use kernel __packed for structures
The kernel provides a __packed definition to abstract away from the
compiler specific attributes tag.

Convert all packed structures in VSP1 to use it.

The GCC documentation [0] describes this attribute as "the structure or
union is placed to minimize the memory required".

The Keil compiler documentation at [1] warns that the use of this
attribute can cause a performance penalty in the event that the compiler
can not deduce the allignment of each field.

Careful examination of the object code generated both with and without
this attribute shows that these structures are accessed identically and
are not affected by any performance penalty. The structures are
correctly aligned and padded to match the needs of the hardware already.

This patch does not serve to make a decision as to the use of the
attribute, but purely to clean up the code to use the kernel defined
abstraction as per [2].

[0] https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-packed-type-attribute
[1] http://www.keil.com/support/man/docs/armcc/armcc_chr1359124230195.htm
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/compiler-gcc.h?h=v4.16-rc5#n92

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-03 15:55:49 -04:00
..
Makefile media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_brx.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_brx.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_clu.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_clu.h media: vsp1: Convert display lists to use new body pool 2018-05-25 18:42:46 -04:00
vsp1_dl.c media: vsp1: use kernel __packed for structures 2018-08-03 15:55:49 -04:00
vsp1_dl.h media: vsp1: Move video configuration to a cached dlb 2018-05-25 19:05:46 -04:00
vsp1_drm.c media: vsp1: drm: Fix minor grammar error 2018-08-03 15:54:36 -04:00
vsp1_drm.h media: v4l: vsp1: Integrate DISCOM in display pipeline 2018-05-17 06:22:08 -04:00
vsp1_drv.c media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_entity.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
vsp1_entity.h media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_hgo.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_hgo.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hgt.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_hgt.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_histo.c media: v4l: vsp1: Reset the crop and compose rectangles in the set_fmt helper 2018-05-17 06:22:08 -04:00
vsp1_histo.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_hsit.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_hsit.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_lif.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_lif.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_lut.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_lut.h media: vsp1: Convert display lists to use new body pool 2018-05-25 18:42:46 -04:00
vsp1_pipe.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_pipe.h media: vsp1: Move video configuration to a cached dlb 2018-05-25 19:05:46 -04:00
vsp1_regs.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_rpf.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_rwpf.c media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_rwpf.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_sru.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_sru.h media: v4l: vsp1: Use SPDX license headers 2018-05-17 06:22:08 -04:00
vsp1_uds.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_uds.h media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_uif.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1_uif.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00
vsp1_video.c media: vsp1: Move video configuration to a cached dlb 2018-05-25 19:05:46 -04:00
vsp1_video.h media: vsp1: Move video suspend resume handling to video object 2018-05-25 18:37:32 -04:00
vsp1_wpf.c media: vsp1: Adapt entities to configure into a body 2018-05-25 19:04:35 -04:00
vsp1.h media: v4l: vsp1: Add support for the DISCOM entity 2018-05-17 06:22:08 -04:00