Skip to content

Commit 8c038ef

Browse files
Sakari Ailusmchehab
authored andcommitted
media: staging: ipu3-imgu: Move alignment attribute to field
Move the alignment attribute of struct ipu3_uapi_awb_fr_config_s to the field in struct ipu3_uapi_4a_config, the other location where the struct is used. Fixes: commit c9d52c1 ("media: staging: imgu: Address a compiler warning on alignment") Reported-by: Tomasz Figa <[email protected]> Tested-by: Bingbu Cao <[email protected]> Cc: [email protected] # for v5.3 and up Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 81d1ade commit 8c038ef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/staging/media/ipu3/include/intel-ipu3.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ struct ipu3_uapi_awb_fr_config_s {
450450
__u32 bayer_sign;
451451
__u8 bayer_nf;
452452
__u8 reserved2[7];
453-
} __attribute__((aligned(32))) __packed;
453+
} __packed;
454454

455455
/**
456456
* struct ipu3_uapi_4a_config - 4A config
@@ -466,7 +466,8 @@ struct ipu3_uapi_4a_config {
466466
struct ipu3_uapi_ae_grid_config ae_grd_config;
467467
__u8 padding[20];
468468
struct ipu3_uapi_af_config_s af_config;
469-
struct ipu3_uapi_awb_fr_config_s awb_fr_config;
469+
struct ipu3_uapi_awb_fr_config_s awb_fr_config
470+
__attribute__((aligned(32)));
470471
} __packed;
471472

472473
/**

0 commit comments

Comments
 (0)