From: Paolo Abeni <pabeni@redhat.com>
To: Jacob Keller <jacob.e.keller@intel.com>,
intel-wired-lan@lists.osuosl.org
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>,
netdev@vger.kernel.org, Tony Nguyen <anthony.l.nguyen@intel.com>,
Wenjun Wu <wenjun1.wu@intel.com>,
Jakub Kicinski <kuba@kernel.org>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build.
Date: Thu, 17 Oct 2024 08:39:36 +0200 [thread overview]
Message-ID: <fee3fe99-14bf-486e-b12e-5088d17a095a@redhat.com> (raw)
In-Reply-To: <98b5bef5-d5a8-45d5-8fe8-f9c34eb5ab84@intel.com>
On 10/17/24 00:49, Jacob Keller wrote:
> On 10/15/2024 6:56 AM, Paolo Abeni wrote:
>> The kernel test robot reported a build failure on m68k in the intel
>> driver due to the recent shapers-related changes.
>>
>> The mentioned arch has funny alignment properties, let's be explicit
>> about the binary layout expectation introducing a padding field.
>>
>> Fixes: 608a5c05c39b ("virtchnl: support queue rate limit and quanta size configuration")
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202410131710.71Wt6LKO-lkp@intel.com/
>> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
>> ---
>> include/linux/avf/virtchnl.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/include/linux/avf/virtchnl.h b/include/linux/avf/virtchnl.h
>> index 223e433c39fe..13a11f3c09b8 100644
>> --- a/include/linux/avf/virtchnl.h
>> +++ b/include/linux/avf/virtchnl.h
>> @@ -1499,6 +1499,7 @@ VIRTCHNL_CHECK_STRUCT_LEN(8, virtchnl_queue_chunk);
>>
>> struct virtchnl_quanta_cfg {
>> u16 quanta_size;
>> + u16 pad;
>> struct virtchnl_queue_chunk queue_select;
>
> There's a hidden 2 byte padding because queue_select requires 4-byte
> alignment. We assume this, as the VIRTCHNL_CHECK_STRUCT_LEN for this
> structure is 12 bytes.
>
> On mk68k, we must not be adding this padding, which results in a 10 byte
> structure, failing the size check for VIRTCHNL_CHECK_STRUCT_LEN,
> resulting in the compilation error?
Exactly!
> Adding the explicit size aligns with the actual expected layout and size
> for this structure, fixing mk68k without affecting the other architectures.
>
> Ok.
>
> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Thanks,
Please LMK if you prefer/agree to have this one applied directly on
net-next, to reduce build issues spawning around ASAP.
Paolo
next prev parent reply other threads:[~2024-10-17 6:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 13:56 [Intel-wired-lan] [PATCH iwl-next] virtchnl: fix m68k build Paolo Abeni
2024-10-15 15:45 ` Alexander Lobakin
2024-10-16 4:16 ` Paul Menzel
2024-10-16 22:49 ` Jacob Keller
2024-10-17 6:39 ` Paolo Abeni [this message]
2024-10-18 12:57 ` Przemek Kitszel
2024-10-18 20:23 ` Keller, Jacob E
2024-10-22 14:00 ` patchwork-bot+netdevbpf
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=fee3fe99-14bf-486e-b12e-5088d17a095a@redhat.com \
--to=pabeni@redhat.com \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=przemyslaw.kitszel@intel.com \
--cc=wenjun1.wu@intel.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: 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