Linux Perf Users
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "James Clark" <james.clark@linaro.org>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v3] perf build: Stub out __guarded_by() on older Clang versions
Date: Tue, 24 Nov 2026 11:37:53 +0000	[thread overview]
Message-ID: <sashiko-outbox-231057@kernel.org> (raw)
In-Reply-To: <20261124-james-perf-late-parse-attr-v3-1-f9e906dd9da5@linaro.org>

> __guarded_by() annotations that reference struct members require Clang
> 19 or later [1], otherwise the build fails on older versions, e.g. Clang
> 18:
> 
>   util/env.h:142:39: error: use of undeclared identifier 'lock'
>     142 |    struct rb_root          infos __guarded_by(&lock);
> 
> Stub out __guarded_by() and __pt_guarded_by() on older versions, but
> keep the rest of the context analysis enabled. Add an exception to
> check-headers.sh for the tools only change.
> 
> [1]: https://github.com/llvm/llvm-project/pull/95455
> 
> Fixes: 321967859933 ("perf build: Enable context analysis and Clang thread-safety flags")
> Signed-off-by: James Clark <james.clark@linaro.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-james-perf-late-parse-attr-v3-1-f9e906dd9da5@linaro.org?part=1

      reply	other threads:[~2026-11-24 11:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 11:33 [PATCH v3] perf build: Stub out __guarded_by() on older Clang versions James Clark
2026-11-24 11:37 ` sashiko-bot [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=sashiko-outbox-231057@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=james.clark@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox