From: Cristian Marussi <cristian.marussi@arm.com> To: Arnd Bergmann <arnd@arndb.de> Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Linux ARM <linux-arm-kernel@lists.infradead.org>, Sudeep Holla <sudeep.holla@arm.com> Subject: Re: [PATCH 3/4] firmware: arm_scmi: Fix scmi_event_header fields typing Date: Thu, 9 Jul 2020 09:24:04 +0100 [thread overview] Message-ID: <20200709082348.GA20219@e119603-lin.cambridge.arm.com> (raw) In-Reply-To: <CAK8P3a3mH4h9=MZiLmqk=YY8_pzQnUUvsvcL1TZQ6uJEdGUf=w@mail.gmail.com> On Wed, Jul 08, 2020 at 10:38:08PM +0200, Arnd Bergmann wrote: > On Wed, Jul 8, 2020 at 2:24 PM Cristian Marussi > <cristian.marussi@arm.com> wrote: > > > > Drop size_t in favour of fixed size u32 for consistency and shuffle > > around fields definitions to minimize implicit padding. > > > > Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> > > As you still have implicit padding at the end, I'd either make > that explicit now, or leave the __packed attribute. Do you mean expliciting that with a comment, right ? being the last member 'payld' a flexible array must be the last in order to even compile. I'm a bit confused anyway on how the trailing padding works on a struct like this which ends with a flexible array definition, so I was expecting that the trailing pads would have made no difference, given that it's used to basically give some know layout to a blob of data via casting... Thanks Cristian > > The payld_sz is not actually force to be misaligned with the > reordered layout, which is what's most important. > > Arnd
WARNING: multiple messages have this Message-ID (diff)
From: Cristian Marussi <cristian.marussi@arm.com> To: Arnd Bergmann <arnd@arndb.de> Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Linux ARM <linux-arm-kernel@lists.infradead.org>, Sudeep Holla <sudeep.holla@arm.com> Subject: Re: [PATCH 3/4] firmware: arm_scmi: Fix scmi_event_header fields typing Date: Thu, 9 Jul 2020 09:24:04 +0100 [thread overview] Message-ID: <20200709082348.GA20219@e119603-lin.cambridge.arm.com> (raw) In-Reply-To: <CAK8P3a3mH4h9=MZiLmqk=YY8_pzQnUUvsvcL1TZQ6uJEdGUf=w@mail.gmail.com> On Wed, Jul 08, 2020 at 10:38:08PM +0200, Arnd Bergmann wrote: > On Wed, Jul 8, 2020 at 2:24 PM Cristian Marussi > <cristian.marussi@arm.com> wrote: > > > > Drop size_t in favour of fixed size u32 for consistency and shuffle > > around fields definitions to minimize implicit padding. > > > > Signed-off-by: Cristian Marussi <cristian.marussi@arm.com> > > As you still have implicit padding at the end, I'd either make > that explicit now, or leave the __packed attribute. Do you mean expliciting that with a comment, right ? being the last member 'payld' a flexible array must be the last in order to even compile. I'm a bit confused anyway on how the trailing padding works on a struct like this which ends with a flexible array definition, so I was expecting that the trailing pads would have made no difference, given that it's used to basically give some know layout to a blob of data via casting... Thanks Cristian > > The payld_sz is not actually force to be misaligned with the > reordered layout, which is what's most important. > > Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-07-09 8:24 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-08 12:22 [PATCH 1/4] firmware: arm_scmi: Remove zero-length array in SCMI Notifications Cristian Marussi 2020-07-08 12:22 ` Cristian Marussi 2020-07-08 12:22 ` [PATCH 2/4] firmware: arm_scmi: Remove unneeded __packed attribute Cristian Marussi 2020-07-08 12:22 ` Cristian Marussi 2020-07-08 12:22 ` [PATCH 3/4] firmware: arm_scmi: Fix scmi_event_header fields typing Cristian Marussi 2020-07-08 12:22 ` Cristian Marussi 2020-07-08 20:38 ` Arnd Bergmann 2020-07-08 20:38 ` Arnd Bergmann 2020-07-09 8:24 ` Cristian Marussi [this message] 2020-07-09 8:24 ` Cristian Marussi 2020-07-08 12:22 ` [PATCH 4/4] firmware: arm_scmi: Remove fixed size typing from event reports Cristian Marussi 2020-07-08 12:22 ` Cristian Marussi 2020-07-08 20:39 ` Arnd Bergmann 2020-07-08 20:39 ` Arnd Bergmann
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=20200709082348.GA20219@e119603-lin.cambridge.arm.com \ --to=cristian.marussi@arm.com \ --cc=arnd@arndb.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=sudeep.holla@arm.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.