From nobody Tue Feb 10 16:22:37 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 5BDE031AAA3 for ; Wed, 7 Jan 2026 13:05:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767791120; cv=none; b=kobzq8kJG2Hry30N+8vyEAx4SAZWLN4gXJR9Sff7swnp0yhO+3eBbBSGZUkYGglc8ktz81Dvu4iB3Srh49b56YtxmIDimL2wboo/xorXah30s+pd3z3oYb5M5aaepbq3Xf1e+QZgr2x/YXVmBlOQxm7APXHiX195dBN+V5yeSdA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767791120; c=relaxed/simple; bh=8L7BEeLSyAGZr88Hz5hZv2yOvdC/hTQ7EyJ6GMOjePs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=brzE5XWbQVWErYGM731f2OxZqZ4+wD4aDHCnRTipVjgRitBKPvMjv1dxnyozq1haiSUh0X8AoEsCkecUFOM5bdy/cpa0SUsOvpr8+mvDXPNLR4+jDRVJHOo4agmOzKI9A6uvQr9HOwUVBOK8kPLzI3CMzNj+S+bhufj9juqvU7k= 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=0ivL6Xob; arc=none smtp.client-ip=185.246.85.4 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="0ivL6Xob" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id A7C4F4E41FDE; Wed, 7 Jan 2026 13:05:16 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7E1E9606F8; Wed, 7 Jan 2026 13:05:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B697C103C872C; Wed, 7 Jan 2026 14:05:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767791115; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=28/kVheK1lvYqLZuz6cxLCTZassa/8QL++w4LyvFy3Q=; b=0ivL6Xobw/RkGwwLITYh6UfvAOWLChYOicSsB1GAPA7BgL4XvR3hFeZucfosgi42g7iQzI c6HbaFj+SUfm0P8qi5lzLqWntM+3yAi48Tnf82GD1iNuqSkDFWuOaN1saaSFTvALAMoFSO 27T2ubyCtpFxA8zG3M0X/tW0AqvLBW1+FJs1FW7QY6/2iAI4AYlIsdrshFAI081/7LLAx5 9waryOXNoT4ssZOoi4zIzQqLCIKRe0sWlaD7BZ/cwLU9M4qnjJcObELdDzvW8Bk0jvoIZz +qKOFd5i+8NCHP8KroYRt+0ur0/xt/3Ti0EsyQEv0Pb0BZO+BHceHr5VR7gU+Q== From: Gregory CLEMENT Date: Wed, 07 Jan 2026 14:04:52 +0100 Subject: [PATCH v3 1/4] of: reserved_mem: Fix placement of __free() annotation 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: quoted-printable Message-Id: <20260107-mtd-memregion-v3-1-f9fc9107b992@bootlin.com> References: <20260107-mtd-memregion-v3-0-f9fc9107b992@bootlin.com> In-Reply-To: <20260107-mtd-memregion-v3-0-f9fc9107b992@bootlin.com> To: Rob Herring , Linus Walleij , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley Cc: Thomas Petazzoni , Vladimir Kondratiev , =?utf-8?q?Beno=C3=AEt_Monin?= , =?utf-8?q?Th=C3=A9o_Lebrun?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, Gregory CLEMENT X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 The __free() annotation was incorrectly placed before the variable name instead of after it, which resulted in the following checkpatch errors: ERROR: need consistent spacing around '*' (ctx:WxV) + struct device_node __free(device_node) *target =3D of_parse_phandle= (np, "memory-region", idx); ^ WARNING: function definition argument 'idx' should also have an identifier = name + struct device_node __free(device_node) *target =3D of_parse_phandle= (np, "memory-region", idx); As part of this cleanup, also remove the useless return statement flagged by checkpatch. Signed-off-by: Gregory CLEMENT --- drivers/of/of_reserved_mem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 5619ec9178587..1ab8f4153600b 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -127,7 +127,6 @@ static void __init fdt_reserved_mem_save_node(unsigned = long node, const char *un fdt_init_reserved_mem_node(rmem); =20 reserved_mem_count++; - return; } =20 static int __init early_init_dt_reserve_memory(phys_addr_t base, @@ -747,7 +746,7 @@ int of_reserved_mem_region_to_resource(const struct dev= ice_node *np, if (!np) return -EINVAL; =20 - struct device_node __free(device_node) *target =3D of_parse_phandle(np, "= memory-region", idx); + struct device_node *target __free(device_node) =3D of_parse_phandle(np, "= memory-region", idx); if (!target || !of_device_is_available(target)) return -ENODEV; =20 --=20 2.51.0