From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Cc: kernel test robot <lkp@intel.com>, <bpf@vger.kernel.org>,
<ast@kernel.org>, <daniel@iogearbox.net>, <andrii@kernel.org>,
<oe-kbuild-all@lists.linux.dev>, <netdev@vger.kernel.org>,
<magnus.karlsson@intel.com>, <stfomichev@gmail.com>,
<kerneljasonxing@gmail.com>,
Eryk Kubanski <e.kubanski@partner.samsung.com>,
Stanislav Fomichev <sdf@fomichev.me>
Subject: Re: [PATCH v8 bpf] xsk: fix immature cq descriptor production
Date: Thu, 4 Sep 2025 13:31:10 +0200 [thread overview]
Message-ID: <07646dce-dab4-4afe-a09a-e6a83502ac30@intel.com> (raw)
In-Reply-To: <aLlcgDC7s3Dh0NdX@boxer>
From: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Date: Thu, 4 Sep 2025 11:31:44 +0200
> On Wed, Sep 03, 2025 at 10:29:02AM +0800, kernel test robot wrote:
>> Hi Maciej,
>>
>> kernel test robot noticed the following build warnings:
>>
>> [auto build test WARNING on bpf/master]
>>
>> url: https://github.com/intel-lab-lkp/linux/commits/Maciej-Fijalkowski/xsk-fix-immature-cq-descriptor-production/20250903-060850
>> base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
>> patch link: https://lore.kernel.org/r/20250902220613.2331265-1-maciej.fijalkowski%40intel.com
>> patch subject: [PATCH v8 bpf] xsk: fix immature cq descriptor production
>> config: riscv-randconfig-001-20250903 (https://download.01.org/0day-ci/archive/20250903/202509031029.iL7rCVvQ-lkp@intel.com/config)
>> compiler: riscv32-linux-gcc (GCC) 8.5.0
>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250903/202509031029.iL7rCVvQ-lkp@intel.com/reproduce)
>>
>> If you fix the issue in a separate patch/commit (i.e. not just a new version of
>> the same patch/commit), kindly add following tags
>> | Reported-by: kernel test robot <lkp@intel.com>
>> | Closes: https://lore.kernel.org/oe-kbuild-all/202509031029.iL7rCVvQ-lkp@intel.com/
>>
>> All warnings (new ones prefixed by >>):
>>
>> net/xdp/xsk.c: In function 'xsk_cq_submit_addr_locked':
>>>> net/xdp/xsk.c:572:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>> xskq_prod_write_addr(pool->cq, idx, (u64)skb_shinfo(skb)->destructor_arg);
>> ^
>> net/xdp/xsk.c: In function 'xsk_set_destructor_arg':
>>>> net/xdp/xsk.c:625:36: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>> skb_shinfo(skb)->destructor_arg = (void *)addr;
>
> Meh, I suppose uintptr_t casting will help here.
Correct, you need a double cast to convert u64 <-> void *, see [0].
Maybe we'd want to make those helpers generic in future...
> So I'll send v9 in the evening :)
[0]
https://elixir.bootlin.com/linux/v6.17-rc4/source/include/net/libeth/xdp.h#L475
Thanks,
Olek
prev parent reply other threads:[~2025-09-04 11:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 22:06 [PATCH v8 bpf] xsk: fix immature cq descriptor production Maciej Fijalkowski
2025-09-03 2:29 ` kernel test robot
2025-09-04 9:31 ` Maciej Fijalkowski
2025-09-04 11:31 ` Alexander Lobakin [this message]
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=07646dce-dab4-4afe-a09a-e6a83502ac30@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=e.kubanski@partner.samsung.com \
--cc=kerneljasonxing@gmail.com \
--cc=lkp@intel.com \
--cc=maciej.fijalkowski@intel.com \
--cc=magnus.karlsson@intel.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sdf@fomichev.me \
--cc=stfomichev@gmail.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