Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38342523rwd; Wed, 12 Jul 2023 06:31:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEFI81vFABY19JBWRTyr3QRgFtHaPrXCIddgBODQkt911ltqb2dcJUHlwpQ/jve/ac5idci X-Received: by 2002:a05:6a20:8f0c:b0:12e:cbce:444a with SMTP id b12-20020a056a208f0c00b0012ecbce444amr17825972pzk.37.1689168703084; Wed, 12 Jul 2023 06:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689168703; cv=none; d=google.com; s=arc-20160816; b=KDkSnx3IIUkgA9Wu3DZ4ueKimmmnEOw9c0ieTfxXTWxJJofDFDEC82azN8aG55jSU3 TIEWdfUFtoT2zT0H5MyNACOqGwSEOL1Z0SfNETug8nxCPMscfre9x41QWpM9quhuX+br +ZEwSSpndc4hLLlBgw0H7KRTy3BEYmAHB+vEU58ny4yh0ObidXFy1gx7TKONasabUBTP i1DGeGZCCqOwlK5EsxZnsgEu60kwgsbZr/h+e/ViCeu+3qcu7A+2KLSACZHCVrC7cmrC bZ30yT9Y2ymlz0333NncCIkbwNrP/3CD3vTdpgX/1HaZYLR0d5dv8AmzUyjpO1oLOQB1 du4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=E42+ST14pNRfqsPuR3+R8fOAMeInypN3bsWiSje/TLw=; fh=AG2KDXUj3QYvl6fXtaXj5MDFhLfzaNNZyfqnFR17VNc=; b=JoxH4EgXsVXvsoej16FjATI7cjexIWvoseZvn+XO7OQMcCB5IafCTi4kwpJIOSBvN4 gwr4wgUSqGOGzWP1t4LMs72T9vjgtkyRNC4mGH2juhN6fsc8qEp1riuLp+735fS0QZI3 YUJsmNEK/tdV1W+VjDOO5F7Kq9YIiyIsSdQYKueSb/uqTxMEzyU1/5qEedz5KPX9o7bj YEruNBhgbroakLi2sVoBYLAV0v+xbOEp+Z42dseE+osYNebz4CcJPR6UuvgT4o0sLi3C Y8iNpoKU3Fo9/oBho5Cv8AHYTT6bqWxvET2LQZOo3EpaCBOV+SS3igQxZ3AEsNaS2BTR kuyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s26-20020a65645a000000b0055c3e6ada36si3090105pgv.354.2023.07.12.06.31.30; Wed, 12 Jul 2023 06:31:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232633AbjGLMto (ORCPT + 99 others); Wed, 12 Jul 2023 08:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233358AbjGLMtm (ORCPT ); Wed, 12 Jul 2023 08:49:42 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05D81982 for ; Wed, 12 Jul 2023 05:49:41 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJZHc-0005nV-F2; Wed, 12 Jul 2023 14:49:28 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qJZHb-00DtNV-FD; Wed, 12 Jul 2023 14:49:27 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qJZHa-004J0e-B0; Wed, 12 Jul 2023 14:49:26 +0200 Date: Wed, 12 Jul 2023 14:49:25 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Yangtao Li Cc: Niklas =?utf-8?Q?S=C3=B6derlund?= , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , linux-renesas-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 21/27] thermal/drivers/rcar_thermal: Convert to platform remove callback returning void Message-ID: <20230712124925.mssqxm3cvvgy2bbc@pengutronix.de> References: <20230712081258.29254-1-frank.li@vivo.com> <20230712081258.29254-21-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tf26cdgvc5q2g7lq" Content-Disposition: inline In-Reply-To: <20230712081258.29254-21-frank.li@vivo.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tf26cdgvc5q2g7lq Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, Jul 12, 2023 at 04:12:52PM +0800, Yangtao Li wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results in resource leaks. To improve here there is a > quest to make the remove callback return void. In the first step of this > quest all drivers are converted to .remove_new() which already returns > void. >=20 > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. >=20 > Cc: Uwe Kleine-K=F6nig > Signed-off-by: Yangtao Li Reviewed-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --tf26cdgvc5q2g7lq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmSuoVQACgkQj4D7WH0S /k7K5AgAm0/HM7N+Wpid5+g4rZnR/veF450ephm3dGBsVNwsSsSyvzQJ3Vq5FMo/ imp2YHjJFwmU5XgEt902XhgpOF/ABqWEeQaDUjdPnRTxLbTzhMBZLKx7Rgv1zUQW gZcswSMOkE2uFuvm4QbDoVxmIHsSZCrhxHv72Az2CWILdnENO90LjGMRxzxzVhyi 7syCB+s+usqaKe9f0VNW43/AMGKAP8TywrLFM553EjTKtfNLtGX5uUZOwYIFCr5i 1Kxvs7VHBAXrtfXO0S6wTQN1fcnsfR4UlqkBqxYu6Qf8kJaziWSN3oA8j4Pea511 W1hpClUrNd/ira9dnJb5CyUocRlX0g== =0C0b -----END PGP SIGNATURE----- --tf26cdgvc5q2g7lq--