public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] videodev2.h: apply packed attribute to union
@ 2022-04-22 19:20 Devendra Tewari
  2022-10-07 21:58 ` Kieran Bingham
  0 siblings, 1 reply; 6+ messages in thread
From: Devendra Tewari @ 2022-04-22 19:20 UTC (permalink / raw)
  To: linux-media; +Cc: Devendra Tewari

Fixes clang warning: field within 'v4l2_ext_control' is less than
'v4l2_ext_control::(anonymous union

Signed-off-by: Devendra Tewari <devendra.tewari@gmail.com>
---
 include/uapi/linux/videodev2.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h
index 3768a0a80830..767c52c722cd 100644
--- a/include/uapi/linux/videodev2.h
+++ b/include/uapi/linux/videodev2.h
@@ -1765,7 +1765,7 @@ struct v4l2_ext_control {
 		struct v4l2_ctrl_vp9_compressed_hdr __user *p_vp9_compressed_hdr_probs;
 		struct v4l2_ctrl_vp9_frame __user *p_vp9_frame;
 		void __user *ptr;
-	};
+	} __attribute__ ((packed));
 } __attribute__ ((packed));
 
 struct v4l2_ext_controls {
-- 
2.25.1


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

end of thread, other threads:[~2023-09-06 11:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 19:20 [PATCH] videodev2.h: apply packed attribute to union Devendra Tewari
2022-10-07 21:58 ` Kieran Bingham
2022-10-07 23:04   ` Devendra Tewari
2022-10-08 11:04     ` Devendra Tewari
2022-10-08 11:48     ` Devendra Tewari
2023-09-06 11:54       ` Hans Verkuil

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