Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38128601rwd; Wed, 12 Jul 2023 03:34:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFwbTEbNjA2I7vfKJKNZw9nma9QPuzA75h7P4t5AQRjZkwML422ae8UBfnraQtDRz8H0EoU X-Received: by 2002:a05:6358:281a:b0:134:c37f:4b5c with SMTP id k26-20020a056358281a00b00134c37f4b5cmr17869122rwb.22.1689158076619; Wed, 12 Jul 2023 03:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689158076; cv=none; d=google.com; s=arc-20160816; b=jDRPDdg0cucJOsDAx/ot4OtVlxsinJp1BnFLEAFMsOZH2JT9uPwaVIqlx62fTHCDzL yNlyjLDcgO4xzDAT9pVSzU7ACO25BrhI9dlCd4XxDERCzGjeHURDMGU2KG165I8mfP3f xsfjF9lcrYkzCzwLT5D1uPgMZ36hPMqn7ybR+CUlIx0UEpbuUw+RgcBSqNldtfI4Y579 Ejca6irI+pCIGOLvTrlLXp8dkca6WLx7ydRx8VCBt5aHwH8XZO6gqRw6FTAjAqBr4WMP YxPj0+LVQtm2HontTqPty/Qn3ImSC3lA3uI4bqTq8A0qRM7WHhcWKtx/BTWV8LxOpiNB ldZA== 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=oIs89Ffr9AKHqVB5VnCUxi4uwBUhCNgPJgfXtNOv13Y=; fh=F5Y6wTxMY8v0l9FlSi2sBAIMUGyAsHraFssKeXJW+dI=; b=VWGZF50okAhoYepnlZLBzi0OF2uJtSzQNwiaIy1gRiSJD4OB7RqRLTqqAAZai1NGcj rFnQuXjowK1ns7YAQLUd4XTrykKz1cEpvLjgLlYZGv7oHCo7LFo/yWrosQbLKnumsZ1+ WGEMxaRn0SJdhjNtc0Odju+nC6st1q6TbdnkwwDip8WIfXXxJrPuMBNTKNJrjNop5t/n uYx0I5/rlEMssK1eC3vzF7ayOoz6fSRDF8WAJqgsxsOL4S4bdUWdbMxoiPaGKsvgtRDT nsLIFwxqFuzihWIkX22tJvrFbTxA4hN6uIljJnA+2OnDY/cA/Ghn/MRKlXVYJBJDidx1 PI/Q== 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 r22-20020a63ce56000000b005503f266742si2969818pgi.647.2023.07.12.03.34.24; Wed, 12 Jul 2023 03:34:36 -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 S229529AbjGLKGp (ORCPT + 99 others); Wed, 12 Jul 2023 06:06:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjGLKGn (ORCPT ); Wed, 12 Jul 2023 06:06:43 -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 F348210FA for ; Wed, 12 Jul 2023 03:06:42 -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 1qJWju-0007KS-Ax; Wed, 12 Jul 2023 12:06:30 +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 1qJWjs-00DrBl-Um; Wed, 12 Jul 2023 12:06:28 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qJWjs-004GdE-8n; Wed, 12 Jul 2023 12:06:28 +0200 Date: Wed, 12 Jul 2023 12:06:28 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Yangtao Li Cc: "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , linux-pm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/27] thermal/drivers/broadcom: Convert to platform remove callback returning void Message-ID: <20230712100628.jxfr75n2ql7bwmm5@pengutronix.de> References: <20230712081258.29254-1-frank.li@vivo.com> <20230712081258.29254-3-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v6ffzs4v5ojt4725" Content-Disposition: inline In-Reply-To: <20230712081258.29254-3-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=ham 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 --v6ffzs4v5ojt4725 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2023 at 04:12:34PM +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 --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --v6ffzs4v5ojt4725 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmSueyMACgkQj4D7WH0S /k5+mggAop9qsw9ky5DradBLkryVGSKmr0+61T/hqhHtUHT//puLsoTS7kuXZiMJ KDwTmC6URZXx6nV+tTW0hJh1MMQuJFoIQwbT/6oQbSR398+xkYWVX/KSZVziMRcg 9wbyRTqhOY+SIPDTw0mYAIROjOX0iy7dxRIOjUH+o30zf2AKt747lco0wBpE3VjW WZ3286+Jlf9TUKmSD9fy1BRXdQRBGvjINinWxZ4pZgWE3z09HJ0TRFm8FJc2AEKy jVInOfjy6Atz36JLwdXtuBNuyfJhf7r4CF8owZz3PlQ8ASm82bfKoKjkeD0YItbs eYENYebHLwMUh45nMD7Sb4gb4J/sxw== =LDh0 -----END PGP SIGNATURE----- --v6ffzs4v5ojt4725--