From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: "George Guo" <dongtai.guo@linux.dev>, <daniel@iogearbox.net>,
<andrii@kernel.org>, <eddyz87@gmail.com>, <memxor@gmail.com>
Cc: <emil@etsalapatis.com>, <bpf@vger.kernel.org>,
<linux-kselftest@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
"George Guo" <guodongtai@kylinos.cn>
Subject: Re: [PATCH bpf-next v2] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free
Date: Tue, 01 Dec 2026 04:06:38 +0000 [thread overview]
Message-ID: <DN93LPR1X2QA.39YLUWPCTW4F1@gmail.com> (raw)
In-Reply-To: <20261201034459.20785-1-dongtai.guo@linux.dev>
On Mon, Nov 30, 2026 at 07:44 PM George Guo <dongtai.guo@linux.dev> wrote:
> test_buddy_alloc_free() picks an allocation size with
> alloc_free_sizes[(i * 5) % 8], where i is a signed int. That is a
> signed remainder, and building the BPF selftests with clang 19 fails:
>
> test_buddy.bpf.c:109:54: error: unsupported signed division, please convert to unsigned div/mod.
In June you reported that clang 19 cannot build libarena at all:
https://lore.kernel.org/bpf/20260630025809.74043-1-dongtai.guo@linux.dev/
fatal error: error in backend: Cannot select: AtomicCmpSwap<(s32)> ...
In function: arena_spin_lock_slowpath
arena_spin_lock_slowpath() still has the 32-bit cmpxchg.
libarena/Makefile still passes no -mcpu.
By that report the build with clang 19 fails with and without this patch.
The answer is the same as in June. Pls upgrade clang.
pw-bot: cr
next prev parent reply other threads:[~2026-12-01 4:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 3:44 [PATCH bpf-next v2] selftests/bpf: Use unsigned loop counter in test_buddy_alloc_free George Guo
2026-12-01 4:06 ` Alexei Starovoitov [this message]
2026-12-01 6:35 ` George Guo
2026-12-01 4:11 ` bot+bpf-ci
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=DN93LPR1X2QA.39YLUWPCTW4F1@gmail.com \
--to=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=dongtai.guo@linux.dev \
--cc=eddyz87@gmail.com \
--cc=emil@etsalapatis.com \
--cc=guodongtai@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=memxor@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 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.