Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 1/1] ov5648: Don't pack controls struct
@ 2022-01-10 22:48 Sakari Ailus
  2022-01-11  8:28 ` Paul Kocialkowski
  0 siblings, 1 reply; 6+ messages in thread
From: Sakari Ailus @ 2022-01-10 22:48 UTC (permalink / raw)
  To: linux-media; +Cc: Paul Kocialkowski

Don't pack the driver specific struct containing control pointers. This
lead to potential alignment issues when working with the pointers.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e43ccb0a045f ("media: i2c: Add support for the OV5648 image sensor")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/media/i2c/ov5648.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov5648.c b/drivers/media/i2c/ov5648.c
index 87f9b724cd7f..3478650ee732 100644
--- a/drivers/media/i2c/ov5648.c
+++ b/drivers/media/i2c/ov5648.c
@@ -639,7 +639,7 @@ struct ov5648_ctrls {
 	struct v4l2_ctrl *pixel_rate;
 
 	struct v4l2_ctrl_handler handler;
-} __packed;
+};
 
 struct ov5648_sensor {
 	struct device *dev;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-13 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-10 22:48 [PATCH 1/1] ov5648: Don't pack controls struct Sakari Ailus
2022-01-11  8:28 ` Paul Kocialkowski
2022-01-11 11:38   ` Sakari Ailus
2022-01-12 11:09     ` Paul Kocialkowski
2022-01-12 11:21       ` Sakari Ailus
2022-01-13 10:17         ` Paul Kocialkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox