* [PATCH v2] staging: vt665x: fix alignment constraints
@ 2021-03-12 14:59 Edmundo Carmona Antoranz
2021-03-16 14:30 ` Edmundo Carmona Antoranz
0 siblings, 1 reply; 5+ messages in thread
From: Edmundo Carmona Antoranz @ 2021-03-12 14:59 UTC (permalink / raw)
To: kernel-janitors; +Cc: arnd, Edmundo Carmona Antoranz
Removing 2 instances of alignment warnings
drivers/staging/vt6655/rxtx.h:153:1: warning: alignment 1 of ‘struct vnt_cts’ is less than 2 [-Wpacked-not-aligned]
drivers/staging/vt6655/rxtx.h:163:1: warning: alignment 1 of ‘struct vnt_cts_fb’ is less than 2 [-Wpacked-not-aligned]
The root cause seems to be that _because_ struct ieee80211_cts is marked as __aligned(2),
this requires any encapsulating struct to also have an alignment of 2.
Fixes: 2faf12c57efe ("staging: vt665x: fix alignment constraints")
Signed-off-by: Edmundo Carmona Antoranz <eantoranz@gmail.com>
---
drivers/staging/vt6655/rxtx.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/vt6655/rxtx.h b/drivers/staging/vt6655/rxtx.h
index e7061d383306..c3c2c1566882 100644
--- a/drivers/staging/vt6655/rxtx.h
+++ b/drivers/staging/vt6655/rxtx.h
@@ -150,7 +150,7 @@ struct vnt_cts {
u16 reserved;
struct ieee80211_cts data;
u16 reserved2;
-} __packed;
+} __packed __aligned(2);
struct vnt_cts_fb {
struct vnt_phy_field b;
@@ -160,7 +160,7 @@ struct vnt_cts_fb {
__le16 cts_duration_ba_f1;
struct ieee80211_cts data;
u16 reserved2;
-} __packed;
+} __packed __aligned(2);
struct vnt_tx_fifo_head {
u8 tx_key[WLAN_KEY_LEN_CCMP];
--
2.30.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2] staging: vt665x: fix alignment constraints
2021-03-12 14:59 [PATCH v2] staging: vt665x: fix alignment constraints Edmundo Carmona Antoranz
@ 2021-03-16 14:30 ` Edmundo Carmona Antoranz
2021-03-16 14:57 ` Julia Lawall
2021-03-16 16:40 ` Dan Carpenter
0 siblings, 2 replies; 5+ messages in thread
From: Edmundo Carmona Antoranz @ 2021-03-16 14:30 UTC (permalink / raw)
To: kernel-janitors; +Cc: Arnd Bergmann
On Fri, Mar 12, 2021 at 9:00 AM Edmundo Carmona Antoranz
<eantoranz@gmail.com> wrote:
>
I wonder if this patch will be picked up if I don't include Greg in
the conversation. Should I send the patch again looping him in?
> --
> 2.30.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] staging: vt665x: fix alignment constraints
2021-03-16 14:30 ` Edmundo Carmona Antoranz
@ 2021-03-16 14:57 ` Julia Lawall
2021-03-16 15:20 ` Edmundo Carmona Antoranz
2021-03-16 16:40 ` Dan Carpenter
1 sibling, 1 reply; 5+ messages in thread
From: Julia Lawall @ 2021-03-16 14:57 UTC (permalink / raw)
To: Edmundo Carmona Antoranz; +Cc: kernel-janitors, Arnd Bergmann
On Tue, 16 Mar 2021, Edmundo Carmona Antoranz wrote:
> On Fri, Mar 12, 2021 at 9:00 AM Edmundo Carmona Antoranz
> <eantoranz@gmail.com> wrote:
> >
>
> I wonder if this patch will be picked up if I don't include Greg in
> the conversation. Should I send the patch again looping him in?
Whoever is the maintainer for the driver should be included.
julia
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] staging: vt665x: fix alignment constraints
2021-03-16 14:30 ` Edmundo Carmona Antoranz
2021-03-16 14:57 ` Julia Lawall
@ 2021-03-16 16:40 ` Dan Carpenter
1 sibling, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2021-03-16 16:40 UTC (permalink / raw)
To: Edmundo Carmona Antoranz; +Cc: kernel-janitors, Arnd Bergmann
On Tue, Mar 16, 2021 at 08:30:26AM -0600, Edmundo Carmona Antoranz wrote:
> On Fri, Mar 12, 2021 at 9:00 AM Edmundo Carmona Antoranz
> <eantoranz@gmail.com> wrote:
> >
>
> I wonder if this patch will be picked up if I don't include Greg in
> the conversation. Should I send the patch again looping him in?
>
Yes. And you need to include the driver-devel mailing list from
get_maintainer.pl. You can leave lkml out if you want.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-03-16 16:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-12 14:59 [PATCH v2] staging: vt665x: fix alignment constraints Edmundo Carmona Antoranz
2021-03-16 14:30 ` Edmundo Carmona Antoranz
2021-03-16 14:57 ` Julia Lawall
2021-03-16 15:20 ` Edmundo Carmona Antoranz
2021-03-16 16:40 ` Dan Carpenter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.