From: Devendra Tewari <devendra.tewari@gmail.com>
To: linux-media@vger.kernel.org
Cc: Devendra Tewari <devendra.tewari@gmail.com>
Subject: [PATCH] videodev2.h: apply packed attribute to union
Date: Fri, 22 Apr 2022 16:20:31 -0300 [thread overview]
Message-ID: <20220422192031.24895-1-devendra.tewari@gmail.com> (raw)
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
next reply other threads:[~2022-04-22 22:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-22 19:20 Devendra Tewari [this message]
2022-10-07 21:58 ` [PATCH] videodev2.h: apply packed attribute to union 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220422192031.24895-1-devendra.tewari@gmail.com \
--to=devendra.tewari@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox