From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 0635230DED8 for ; Fri, 12 Dec 2025 23:07:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765580846; cv=none; b=DSwbrfXz+uReRKh6HnhDiMGijzazCb28RTcO3xxxwufIlOLYj2maKfZfSAqSbtq5AAo9PObVGnhINdA02ES/sQyK/dj69Ar16N3koPNALBcYJUmWQODetFdEmBN2dd2PM3lU6EW+UggAmJ0QASK5uzn4dYUgdPGfjoTDLydR5x4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765580846; c=relaxed/simple; bh=soPGrj0W3or5WuYdm+Iu3sOiWO1IPXf+caNN7B6TfVs=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=byctX2+lhDBY9iiRXzYH0FQ+JewF10L7K2L/mJhmDlKrFLtgUaa+8s/8ikJXu/GzAb/oXQ9eTR3V55iVwi6UAN3D6TQ6mHXCMDUQPimxoQtaKd+0OCRaKpHmm1s3FddKJ/B5o5DzlqNIRE7gp0XKhXB/OpRipSaFDw1ZVA0SXhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=FtOdSDxd; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FtOdSDxd" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 4F3381A2149; Fri, 12 Dec 2025 23:07:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 252A8606DF; Fri, 12 Dec 2025 23:07:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6E786103C8DEA; Sat, 13 Dec 2025 00:07:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1765580841; h=from:subject:date:message-id:to:mime-version:content-type:in-reply-to: references; bh=3LJWKoYZhhsA2sAJ56XZ8R/EOuuvHxRmbQk0zhQ6PwY=; b=FtOdSDxdVh5WXZetDheO13iQ/BUoXeFp3w62ynWvhsTsSLfeflaBjiEReuwRJTMLw0JF4h o+zWLRiqm+TPbHQWBYtjBCriItEjmyLDbib08Ll2ok9bermTpA/2IS0QYlERvN0cMWWcQC DPZFRQHMf8I81iClAbMHBQ7tOflNB3DG9SKl5zQS/oChbZRkBtfWi4Htf16bP8LcMkyTzZ FFZmh0gFTuzdGnZbBbhKmtSMImVVAKIDAzUzkT4w43rySvM4LEA9I2vSsuf7RA/gf22vDn i60kBXnVqaG2gsXDfc5SEXqak2JVfwlIuSUXsaR4V6D4Tm/pu1fxUsuuRY6gzw== Date: Sat, 13 Dec 2025 00:07:20 +0100 From: Alexandre Belloni To: Frank Li , Jorge Marques , linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH 1/2] i3c: master: Fix confusing cleanup.h syntax Message-ID: <176558079621.1405691.2893431970239239781.b4-ty@bootlin.com> References: <20251208020750.4727-3-krzysztof.kozlowski@oss.qualcomm.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20251208020750.4727-3-krzysztof.kozlowski@oss.qualcomm.com> X-Last-TLS-Session-Version: TLSv1.3 On Mon, 08 Dec 2025 03:07:51 +0100, Krzysztof Kozlowski wrote: > Initializing automatic __free variables to NULL without need (e.g. > branches with different allocations), followed by actual allocation is > in contrary to explicit coding rules guiding cleanup.h: > > "Given that the "__free(...) = NULL" pattern for variables defined at > the top of the function poses this potential interdependency problem the > recommendation is to always define and assign variables in one statement > and not group variable definitions at the top of the function when > __free() is used." > > [...] Applied, thanks! [1/2] i3c: master: Fix confusing cleanup.h syntax https://git.kernel.org/abelloni/c/cc3b18f9fede [2/2] i3c: adi: Fix confusing cleanup.h syntax https://git.kernel.org/abelloni/c/136209e6bd98 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com