All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Arnaldo Carvalho de Melo" <acme@kernel.org>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf bpf_counter: Fix the 32-bit build
Date: Sat, 28 Nov 2026 01:36:23 +0000	[thread overview]
Message-ID: <sashiko-outbox-238407@kernel.org> (raw)
In-Reply-To: <20261128013144.16600-1-acme@kernel.org>

> The bpffs hint added for the perf_event_attr map compares st.f_type with
> BPF_FS_MAGIC.  On 32-bit glibc __fsword_t is int while BPF_FS_MAGIC is
> unsigned int, so the comparison is a sign-compare warning:
> 
>   util/bpf_counter.c:394:43: error: comparison of integer expressions of
>   different signedness: '__fsword_t' {aka 'int'} and 'unsigned int'
>   [-Werror=sign-compare]
> 
> It is fatal where perf builds with WERROR=1, as the almalinux i386
> images do; Debian builds with WERROR=0 and only warns, and Alpine's musl
> defines f_type as unsigned long, so it does not warn at all.
> 
> Cast f_type to unsigned long, the form tools/bpf/bpftool/common.c uses,
> which is warning-free on both 32 and 64-bit.
> 
> Fixes: 2ea09b93b4ca61c1 ("perf bpf_counter: Say why the perf_event_attr map can't be used")
> Cc: Hang Zhengyang <hang.zhengyang1010@gmail.com>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261128013144.16600-1-acme@kernel.org?part=1

  reply	other threads:[~2026-11-28  1:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28  1:31 [PATCH] perf bpf_counter: Fix the 32-bit build Arnaldo Carvalho de Melo
2026-11-28  1:36 ` sashiko-bot [this message]
2026-12-01 17:48 ` Namhyung Kim

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=sashiko-outbox-238407@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=acme@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.