From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26860417BC4 for ; Tue, 14 Jul 2026 18:19:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784053154; cv=none; b=c+GetTrsNIR6a0VYcA5p+SWIgX3kvkRxneIRhe6pDzJC3rNwRwreo29aY6ZV0FRvlp9upxkr3OR/cWbH/e4GxOMHCzqUcL2vVEy9Jb8UWsLMjEMaAWKCS/E+fwe3iYUQ/qa/xi+gGL4LKMCGO62azCxFqakBTiAaf+AZodopgAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784053154; c=relaxed/simple; bh=86JrylRqF2Y0wu16+tADGbf7vhJCNXnUxFnJluBmvg8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E32jjp5GulptexBqk1sXl4Q9yqGO1o8NLsCHRO74ReBT8PUSz9jlN+ijvV55Fshj0fBaP7VBSengqo41gttq4q87F9x8viCojdSdqO2pLoBwQSFFnRLYMIqm6XWw8IzK6Kr4RED2izEMnez4WWAZ6sztFs7DX8ERe3n4hARJGsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qdd/3ySX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qdd/3ySX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A56731F000E9; Tue, 14 Jul 2026 18:19:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784053152; bh=qpcpNib6c8BR4jGpn6MIyZn6pdsDPlY6rVuiClUwtWQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Qdd/3ySXw2XMFw7BjV5Oh28maLkZaLQESS/xlA4J0+6jj75QHnqKRteRwMHRQqh2L j0SZvOcGo7WCLlqvN60pktcmHJO4pimiojcV0logm2+g6Zl0mSlaeLR8giwYcqbr1t ioJ5R1mv/6FIrv3B2VujakCwKRKCpR0YQncrW6psb8tfORCKa8R5axt4UIBOj8p3nn Auep/wLC1ZAbyr66tndUdB7BziJkznS1QZapehCi8AIDxeox+M+xwe7Eajlyc6E2kE FQuZHU7lF6/v74G2e1dZhMS8Kn9SPzNxMrrey7gNCcNJqudcm+ONYrZwGvGKp7GSlR THlFuDLJD0fqg== From: Vincent Mailhol Date: Tue, 14 Jul 2026 20:18:02 +0200 Subject: [PATCH 2/3] container_of: remove useless pair of parentheses Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260714-containerof_refactor-v1-2-b5c31164d2ad@kernel.org> References: <20260714-containerof_refactor-v1-0-b5c31164d2ad@kernel.org> In-Reply-To: <20260714-containerof_refactor-v1-0-b5c31164d2ad@kernel.org> To: Greg Kroah-Hartman , Andrew Morton Cc: Rasmus Villemoes , Sakari Ailus , Nick Desaulniers , Alexander Lobakin , Arnd Bergmann , David Sterba , Ivo van Doorn , Alexey Dobriyan , linux-kernel@vger.kernel.org, Vincent Mailhol X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=817; i=mailhol@kernel.org; h=from:subject:message-id; bh=86JrylRqF2Y0wu16+tADGbf7vhJCNXnUxFnJluBmvg8=; b=owGbwMvMwCV2McXO4Xp97WbG02pJDFlhtVOvW2kpn33sFB8qabT2VP5C+YQTW7g/Vs1U2KN1W bI1c+HDjoksDGJcDJZiiizLyjm5FToKvcMO/bWEmcPKBDJEWqSBAQhYGPhyE/NKjXSM9Ey1DfUM gQwdIwYuTgGY6uzfjAxPtJ/ruSen7jbj2P8/4krVU51/n7n1fr02+qMpsa9vxtUKRoYlwsefztP +c6Zmg+7lm0rtl38+mGfVKHa/5f1xZRP7slOMAA== X-Developer-Key: i=mailhol@kernel.org; a=openpgp; fpr=ED8F700574E67F20E574E8E2AB5FEB886DBB99C2 The last expression in container_of() doesn't need an extra pair of parenthesis. Remove it. Signed-off-by: Vincent Mailhol --- include/linux/container_of.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/container_of.h b/include/linux/container_of.h index 28500a62ab7e..68153170db32 100644 --- a/include/linux/container_of.h +++ b/include/linux/container_of.h @@ -21,7 +21,7 @@ static_assert(__same_type(*(ptr), typeof_member(type, member)) || \ __same_type(*(ptr), void), \ "pointer type mismatch in container_of()"); \ - ((type *)(__mptr - offsetof(type, member))); }) + (type *)(__mptr - offsetof(type, member)); }) /** * container_of_const - cast a member of a structure out to the containing -- 2.54.0