Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2650369rdb; Mon, 4 Dec 2023 03:56:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNwAyNpuCVSc86fwLJK+bYfyLg44qsB8/kIuQdzHJAe+Dynmqgl/ACFm7fTssJRfE9u3U8 X-Received: by 2002:a05:6358:9da2:b0:170:17eb:7c6d with SMTP id d34-20020a0563589da200b0017017eb7c6dmr3643670rwo.64.1701690967635; Mon, 04 Dec 2023 03:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701690967; cv=none; d=google.com; s=arc-20160816; b=uUmkEYWUsyn96Ff9IdnBfdHcXyTxia6QhoIQUjF8HmxR1WIJJX4CaUHmQE77C4PluB 326/VzH5aosJnkCSPXaHtFZj200NJABcDLWTvuB+HcT6TKtWyFPR1azD2fZKlIPflwKs UqzKM2Serm0f0IFKHZmGVbIDGjOgv+JHp8L/yGODrA0tFiZRx4Z5+0aY7kBPMx8fodaG pyMecAhHQYK50AU0hgwQXmLV1/p5IOp+t5BQc/8EBnwkInuFWhS4nPH4qjSRcwyqsRav 1QsEnuKf3FdOra0LlMGW1YCwIXCiw/+i7PbWsfSvLcbTaixoUTQTOYrabWv5n2NfPga2 w8Xw== 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=sXi8Z90yVA5M0BN+MblKv9KyMocoUO9rXMhgDYhpE84=; fh=2+HmcXXDV4wL4TATu2MrSPmO1RhRVD12Vph6dsHNBNE=; b=gkog/mZSnQeNaAGRdLx3jxB8D+SPYA7itirl2fiX8k0ziEPFhnXhQQ6WYTLQtnXr5H TwDyUpoRnjCIQfDXob6kbK2dmQOHNl2DLVXx3RaEhqsGArGv05wf7AIaWQ2G3Vg5dLhW T1ZmZej1sIeZcfzwNLMGztAIaDjBc3cdjDmbqVDJRM5kSqPqNOfI0na8VYoEWBzfNKXT iWAvbj0ZM2qKB4MNgxx3YaDRYc0C06+2QDRYLhOsNLm/RFFszi/AOkM4yzUR9d78DXjg 0ri3jaLDGbymBWRkG4oMRwmOKxPfM07Q0WxWenQjIDH5NFUgiwQHCqxC7xfamEAjrfme vekg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id r9-20020a632b09000000b005b92ab9ce80si3533593pgr.460.2023.12.04.03.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:56:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 41AAF80628E0; Mon, 4 Dec 2023 03:55:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbjLDLzb (ORCPT + 99 others); Mon, 4 Dec 2023 06:55:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbjLDLzS (ORCPT ); Mon, 4 Dec 2023 06:55:18 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34B9F3 for ; Mon, 4 Dec 2023 03:55:24 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rA7Xi-0000dh-PN; Mon, 04 Dec 2023 12:55:18 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rA7Xh-00DVSK-Pl; Mon, 04 Dec 2023 12:55:17 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1rA7Xh-00E1So-Gg; Mon, 04 Dec 2023 12:55:17 +0100 Date: Mon, 4 Dec 2023 12:55:17 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: "Rafael J. Wysocki" , Daniel Lezcano Cc: Yangtao Li , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpuidle: kirkwood: Convert to platform remove callback returning void Message-ID: <20231204115517.zxjgi6ateobjj52d@pengutronix.de> References: <20230712094014.41787-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wql4bbahif3ubg5s" Content-Disposition: inline In-Reply-To: <20230712094014.41787-1-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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:55:49 -0800 (PST) --wql4bbahif3ubg5s Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2023 at 05:40:13PM +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 Can you pick this up? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --wql4bbahif3ubg5s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmVtviQACgkQj4D7WH0S /k5RVAf9GssNsesa0iKADCcIdZ5sTs4QcBmxOLz6FhLgc0e4kZB7HPxoLP9t+VbV /qR0w8tyX3KPQEcdEuRc8jkmlCJczPAs5t6T7eKW3YQsYesBdW/ACDge6hnjC0Ja H/KmLgaZD39rcdSrOmVY4vFzo04sXVkiCqEFKUAwWs9ahF75Jru3Ei40M79JQuXm g87s15i2rzUqpN+LQN26ZMH5T9HYneFmPjZRoypYr7mSeewcKewmWhS3qJbJKJ3/ 1qtx6IaaO05+QJdEud87Bch0Dxa2N10XKrD4teSpvQdAy5tPTRwSFGPylQG6Zs7n 1E7r/q9XvnhWwDxLuqUrtok8vVuEDw== =HURS -----END PGP SIGNATURE----- --wql4bbahif3ubg5s--