Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1183860lqb; Thu, 30 May 2024 02:52:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXI+x1XFt9mbDQelfvrx9m+1fLzBgDOgdBnAX4W16aiM3RqqFcBA0GYPvDfUFSU9beqU2Uq+4f8Te0Ymt4YhlfauZRKQV0GTe7918ORrw== X-Google-Smtp-Source: AGHT+IGDcgbfyhhpSKDvXGxkN5KpjtbttA6JFGWwtJRi9HBHpgAKVmbg8PRd6gh+QfcMb+SLFwDX X-Received: by 2002:a05:6a00:4398:b0:702:2749:6096 with SMTP id d2e1a72fcca58-7023110f8a9mr1721123b3a.11.1717062750261; Thu, 30 May 2024 02:52:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717062750; cv=pass; d=google.com; s=arc-20160816; b=GbbAlVLuEEXAihjP7/Z3mpUYIXHOuaN5GjG4M/KcrMFYshZU0er0sC6Zdzappn0uhM BmEjpkTIqJWFo/pLtXIVarx0+OSaUvhaFQFpgU1b0/Wn38/08VtJMElO8Ea5amA63ALv qGFDNUyPhoGtD9hHX4KyTel43AqCE/dJE1StizY/mKhQgrrI53eDudkJ0DzZVfN8jcDa fSrLUso7q88K4ll1MEDMst4ssFUuokzT1R8H/ofvTIxhxNNxl++uheKrK3ZZsu3G2oc/ Ql+xbqUTMjI7gcNzAUs7Cstdt20ll5U1y1wE4iBDRBVljHMqIoUOrd+IJaru3RjVoaDg s1Nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=oezbfXsbeaJmwShGUCb+ixc9diIxCFrcJK9McEzg11Q=; fh=iShH6ZanoF0nUgv+EkJSypjas0akLaGrMhyzrdhy48I=; b=XZ17S18j/a24FcE/xp1xC8qzwB0dJ/lqwmM/1orIU5/jm1v/7uFfCzKviFJ0GMNkB+ RjVeNHhv5uIKsg2e7DVgJ7qcXkoKRgS5KYQ9rlpOldgBCzogPY2s4PlanalEZlCe1V/r +LSZ5fuiFJinA2eqIjYJmFDcCCcSdr51AFgPxH6lFJpBTxoynq5sc8dsfrFusp+VUi++ B4bKAWO3iqkseBGhkQT3i5vY8d6V72xaA4w0o7sDf88BSR1+fGEr1Eu70rmuyqPQvWwt +gCYvcZ2cYWAyWPmAK0EgqK7AU/NJfAn0QMOkKctBi3gALstw5d4BoOGoGQAbxXwv3AM ebyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=udMzgw2m; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-195204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-701dfae5ac8si4355905b3a.316.2024.05.30.02.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:52:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=udMzgw2m; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-195204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 08D85B2304B for ; Thu, 30 May 2024 09:42:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D72F152790; Thu, 30 May 2024 09:42:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="udMzgw2m" Received: from mout.web.de (mout.web.de [212.227.15.14]) (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 B3A056F30E; Thu, 30 May 2024 09:42:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717062125; cv=none; b=IS0qPFOJgmMhvbwK19qi/8G0DFnMJS/pwYTaPixp516KkDyzIaeIb0o/BkNmLbIT6JlgXVLUYF4SfU8OVs8ATJIh4PJ8Roh695sL0CgMfqJ09OKvZVQoh1qeJ7aeUzgOyVRM/0s7MaK1SzI7+Oh8oMt2Ous86r6/33bSpyD5Dp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717062125; c=relaxed/simple; bh=XWOyTPNcAS3edgj78RlRWWnGHomKwyWonS/ztRducKI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=L2Wb4NTbKLJt1dlsJAZKNCHO/OtnAX1Omb9r3CHn6KAMk7nOE2N+OG3gCDQys0mIxInPhfWzmuURIQZwpcQJYySVnki2bUOABpKKKMIk7PuDXzBRQplYeHO8mJqFBVMzD65ZJL5d/NYUJ9SNfYSBAKa6dnpxp26gEccHz5mHARg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=udMzgw2m; arc=none smtp.client-ip=212.227.15.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1717062046; x=1717666846; i=markus.elfring@web.de; bh=oezbfXsbeaJmwShGUCb+ixc9diIxCFrcJK9McEzg11Q=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=udMzgw2mYVlwtItRnGV35f3oiE0Oyr3q2Wai5rVR1uBx+YWZq6DJmUB0HJFO7gEg zHtbjKeZbMdYQsvdMYg12nG+ChB1GmTP1PGCuWx+tCMS5rZiC1+duXb/jiHwkzB4j syiNZ4mlPm2DiiQ8XjEzFyur696yPd4GXRrreI0h/3tcHoAlAFA1sIbSh3Kt6TiAA D9LJeu9MW5T1g3BLn1VuEErohRJsWwSGlebj9XoGNB0KuJ815IRkZ8rWBx1cMjYYU hdIoDl2VHExhUzdr+Mva/03BzeBESiNQo93VyYKqajOHhSFQ0saGgjsPwp5aj9MhI 3c9cFdagTRHOvih9Ig== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.83.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MP384-1rpSiH3liG-00XcMK; Thu, 30 May 2024 11:40:46 +0200 Message-ID: <5a2f7786-bb02-441a-a60e-a7a548a30a79@web.de> Date: Thu, 30 May 2024 11:40:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v2 04/20] pinctrl: starfive: Use scope based of_node_put() cleanups To: Peng Fan , "soc@kernel.org" , Alexandre Belloni , Alexandre Torgue , Alim Akhtar , Andrew Jeffery , Angelo Gioacchino Del Regno , Baolin Wang , Chester Lin , Chunyan Zhang , Claudiu Beznea , Damien Le Moal , Dan Carpenter , Aisheng Dong , Dvorkin Dmitry , Emil Renner Berthing , Fabio Estevam , Geert Uytterhoeven , "Ghennadi Procopciuc (OSS)" , Hal Feng , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Jacky Bai , Jianlong Huang , Joel Stanley , Jonathan Hunter , Krzysztof Kozlowski , Linus Walleij , Ludovic Desroches , Matthias Brugger , Matthias Brugger , Maxime Coquelin , Nicolas Ferre , Orson Zhai , Patrice Chotard , Sascha Hauer , Sean Wang , Shawn Guo , Shiraz Hashim , Stephen Warren , Sylwester Nawrocki , Thierry Reding , Tony Lindgren , Viresh Kumar , Wells Lu Cc: LKML , "linux-gpio@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-samsung-soc@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-rockchip@lists.infradead.org" , "linux-riscv@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , "imx@lists.linux.dev" , "linux-aspeed@lists.ozlabs.org" , "openbmc@lists.ozlabs.org" , "kernel@pengutronix.de" , "Peng Fan (OSS)" , Emil Renner Berthing References: <20240504-pinctrl-cleanup-v2-4-26c5f2dc1181@nxp.com> <96beb071-ec2c-475f-8fa2-d519a1b1dc28@web.de> Content-Language: en-GB From: Markus Elfring In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:4W0m5Oq+1MGYjHuLsVFcBf6DSSPzN7CJwWHOWi5gVfVYTRdIR+K 2zyPW5XWeC0waA0XG1o0fva/8mCKTm9879lM0GAJSjUGl41hhETK5f8M2ZBMWQ4g0UJlzpD 3fzoJQdfd/ogRUeMGCE2UBUF0SSc9vaIDmdgbQa7eO8DVSGbXX57YkoiUskSCwTn3hiAUkG zfKWQK47+ptxj3MqnNU5w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Z0q9Az0GyLU=;t4hmcU2AVRjgCjjXk+b3MHwUa7l a/pZvuSsug2vebJJV5Mmmf6xKS18ONuBD+gbm/WB8pgHBLJFkYoysMC0IIhx4I0WWI8wizEKj wnwngc3K9jAYAXxT3wClh5EI2lIr7usMKJyuXoUcETJI4md3CnMPaiRQG/yVqlAaqCNcnTEWr WWVhMuNEPkeDux1iinsdm+TlQNMfJThu1Ed2/Gr+1xeNpKuIWMppANb5SaTJfrRnR4fWhKAje H5Ji01z/5jyqznj5BQqSdQN/HIFX+AuFTNeOOmiNL+Fu6rvGsnjOO3Y/SCvMNzBTzPiH9CDir A4M1tTHQ9uQvQBsNIgU0qBKLdJQWQkCNz9rGjEjT7hcfvZGYnOb51PQcD02B6X5AFG9H4e81d QQyoEcHJ2iww/oZeEqD01ICHR6Xm75yJLFp+FB2L2ollolZJGerIrqkObBT4DKiDqZh9JL7Ge bYgdIs3lszUpzViMOTebYrvSUME/DNU00PRb5jIRktRJ68GikIQOSb9GTM4McCY/8YhgSiKHO E0ke83cM8aWyw/aFa3MYwYIMoiR6CkR/JHxXPFGPv0ESsQE+1KqicTxlNRxNNeaC44F87DOhi QwekBqSRkfFTYVqJ/rYDwDv7k6JeNQKnGlzFplb3elYjtqMJQJuXX4QBFa8hnO27xq8GaJIkm oPQAWSWmyUngO8twTu/hiTut+8wfA2nc5zW1Ivh1KxhFHw1LlL2aUdBN27PkhUzfAZ2+2os0h eVnu8MCv4H6B/GiPXrkEj/dv4XcqEBaS34YpYNMsylW8LbTBv3fh0B8rT6BKm1GWYO0GYReRx tgV6FpjSt5H6LMZ9sBiv3t8DXZ4h0OzcUDX1owYdJOg1k= >> 1. Exception handling is repeated a few times also according to memory >> allocation failures. >> How do you think about to use a corresponding label like "e_nomem" >> so that another bit of duplicate source code can be avoided? > > I have no plan to rework this series for non-accepted patches. If you ha= ve > interest and time, feel free to take it. >> >> https://wiki.se/ >> i.cmu.edu%2Fconfluence%2Fdisplay%2Fc%2FMEM12- >> C.%2BConsider%2Busing%2Ba%2Bgoto%2Bchain%2Bwhen%2Bleaving%2Ba% >> 2Bfunction%2Bon%2Berror%2Bwhen%2Busing%2Band%2Breleasing%2Bresou >> rces&data=3D05%7C02%7Cpeng.fan%40nxp.com%7C293bafdf40524fa4655b08 >> dc7e58f6b2%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63852 >> 4167804502915%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL >> CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata >> =3DKb5cz6sVxW1TNfQ8MM2F6YLIIztyjvW4wULEJLYKRM8%3D&reserved=3D0 I became curious how the change acceptance will evolve further also according to such a code transformation possibility. >> 2. Will development interests grow for the usage of a statement like >> "guard(mutex)(&sfp->mutex);"? > > I have no plan on this. Other contributors might get attracted by corresponding design adjustments= . https://elixir.bootlin.com/linux/v6.10-rc1/source/include/linux/cleanup.h#= L124 See also: Looking at guard usage (with SmPL) https://lore.kernel.org/cocci/2dc6a1c7-79bf-42e3-95cc-599a1e154f57@web.de/ https://sympa.inria.fr/sympa/arc/cocci/2024-05/msg00090.html Regards, Markus