mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "André Almeida" <andrealmeid@igalia.com>
To: Sasha Levin <sashal@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Darren Hart <dvhart@infradead.org>,
	Davidlohr Bueso <dave@stgolabs.net>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Nathan Chancellor <nathan@kernel.org>,
	Shuah Khan <shuah@kernel.org>,
	llvm@lists.linux.dev, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests/futex: load atomic values before harness comparisons
Date: Tue, 3 Nov 2026 10:03:27 -0300	[thread overview]
Message-ID: <8b8f7eee-96bb-432e-aab0-a76ec727a60f@igalia.com> (raw)
In-Reply-To: <20261014200147.1364987-1-sashal@kernel.org>

Em 14/10/2026 17:01, Sasha Levin escreveu:
> Clang 21 rejects the harness comparison because typeof(*futex) preserves
> the atomic qualification. Load the value explicitly in the three affected
> assertions so the harness compares unsigned integers. Atomic access and
> its existing sequentially consistent ordering are preserved.
> 
> The baseline produces three invalid-operands errors. The complete futex
> suite builds with Clang 21 and GCC 14 after the change.
> 
> Fixes: 608323bf7bb8 ("selftests: futex: Add tests for robust release operations")
> Signed-off-by: Sasha Levin <sashal@kernel.org>

Reviewed-by: André Almeida <andrealmeid@igalia.com>


      parent reply	other threads:[~2026-11-03 13:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-14 20:01 Sasha Levin
2026-11-03 13:01 ` Sasha Levin
2026-11-03 13:03 ` André Almeida [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=8b8f7eee-96bb-432e-aab0-a76ec727a60f@igalia.com \
    --to=andrealmeid@igalia.com \
    --cc=dave@stgolabs.net \
    --cc=dvhart@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mingo@redhat.com \
    --cc=nathan@kernel.org \
    --cc=peterz@infradead.org \
    --cc=sashal@kernel.org \
    --cc=shuah@kernel.org \
    --cc=tglx@kernel.org \
    /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

all inboxes | Powered by JetHome®