mirror of
https://github.com/torvalds/linux.git
synced 2026-11-10 17:11:02 +01:00
media: mali-c55: add padding to mali_c55_params_ccm structure
The newly added structure has extra padding on the on
some architectures, which triggers a pedantic uapi check:
./usr/include/linux/media/arm/mali-c55-config.h:807:1: error: padding struct size to alignment boundary with 2 bytes [-Werror=padded]
Add explicit padding here to avoid risking information leaks
and incompatibilities between architectures.
Fixes: bb401df68c ("media: mali-c55: Add support for CCM")
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
38a8c2e8a0
commit
2d3873cadd
|
|
@ -794,12 +794,14 @@ struct mali_c55_params_mesh_shading_selection {
|
|||
* Q4.8 format
|
||||
* @gains: Gains for red, green and blue channels in unsigned Q4.8 format
|
||||
* @offs: Offsets for red, green and blue channels
|
||||
* @__pad: Reserved bytes
|
||||
*/
|
||||
struct mali_c55_params_ccm {
|
||||
struct v4l2_isp_params_block_header header;
|
||||
__u16 coeffs[3][3];
|
||||
__u16 gains[3];
|
||||
__u16 offs[3];
|
||||
__u16 __pad;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user