From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796380250; b=rVOZRl22eweDhRAbFGZKFTozTULBwKX5xtq9QuG5/F6YUqV4TyTk7I0uTdb0jN2JCa5A gekdUtpnK4FvOuZh7RUNrGAtXMwhV37PWbgfr4a6xSdhODAa8a/xDTanLxg8G+5tMepPw Ku39JAclmditgBG29YgWqGK0OK1FTVaFkBTfO2axJnuNpv6k+paIuA1N9IrOqs2yFxUEk s0B51ZSh7xBp42g/wBclhzvku2SniGTsGeF85K566gg61F+HF99caASvkYBakvfOMiYhe cS5CDe8sW+EpkAefpOrwfeNNdDABcapgPrBfvVzqbH9EyMSeyTeYGiXThSpQYcaSDTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380250; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=de8OoEvw4ZWM0XrKefHAXB8UJXgSrLuuYwSXwgZQ9SY=; b=B/eYrTfLaNxQGur4tzA4IZP5suDsnonCcGAdVPjBqgLysEU8j6ypkG+NsGOTwYR4dQWn S+P6VptKJHTDW1Alyr4fkWTkLpssdpAvqwEvX9Qpj+c8c+01Y5IocjGWOaibiEH3NsyR6 kHAmUBbDiycobiWwX8ov79ABJfUX0IUOkEFmw7PsMKdoFXasccvEL/FcpDC8NLtPL1R7r I2pygqaXDGbznWZe4yZLbi5sNq5We+VhoRW4M1m7kJXQxSINHspU2caaE+I1ZneeEGulp o7gjZyCKTNBiCo9Ta6AE/YZs7DNZaB6hr4hC+dWPYkGFAJzotqmM4SIAEmOCe/E4q/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="U/4uumxs"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92BDE606A32F; Fri, 4 Dec 2026 10:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=U/4uumxs Received: by smtp.kernel.org (Postfix) with ESMTPSA id 056B71F00897; Fri, 4 Dec 2026 10:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380250; bh=de8OoEvw4ZWM0XrKefHAXB8UJXgSrLuuYwSXwgZQ9SY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=U/4uumxslUS5clbNC3ra+Q79+dmBqn1f+JCtWAvX3dSccNnMYhjab5fr2gR85S83Q 9Cpye09RwNiD6vDngKbUVn+zhmkkfPT/0T8gBP8IFrsaOSPTnq5sb4L/8B9da0ZU2G X+llzsfghYi66FKcGsMjxfK/osWB/uo6sHudtLus= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bart Van Assche , "Peter Zijlstra (Intel)" , Ingo Molnar , Marco Elver , Sasha Levin Subject: [PATCH 7.3 193/742] bit_spinlock: Fix the __bitlock() macro definition Date: Fri, 4 Dec 2026 19:00:57 +0900 Message-ID: <20261204100640.206533087@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bart Van Assche [ Upstream commit af1a4ab4bf3bcb969ad5ee9e7fca1d23703adf32 ] Surround the 'bitnum' argument and the entire __bitlock() macro expansion with parentheses because 'bitnum' could be an expression that includes an operator with a lower precedence than the addition operator (e.g. the exclusive-or operator) and to prevent operator precedence issues in callers. Fixes: eb7d96a13bf4 ("bit_spinlock: Support Clang's context analysis") Signed-off-by: Bart Van Assche Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Acked-by: Marco Elver Link: https://patch.msgid.link/38cdec9322fa710f84c018e0b318894c6234c411.1795043161.git.bvanassche@acm.org Signed-off-by: Sasha Levin --- include/linux/bit_spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/bit_spinlock.h b/include/linux/bit_spinlock.h index 7869a6e59b6a6..c31d4f4d09ee4 100644 --- a/include/linux/bit_spinlock.h +++ b/include/linux/bit_spinlock.h @@ -17,7 +17,7 @@ * static analysis can use. */ context_lock_struct(__context_bitlock) { }; -#define __bitlock(bitnum, addr) (struct __context_bitlock *)(bitnum + (addr)) +#define __bitlock(bitnum, addr) ((struct __context_bitlock *)((bitnum) + (addr))) /* * bit-based spin_lock() -- 2.53.0