Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp500893rwb; Sun, 6 Nov 2022 09:04:42 -0800 (PST) X-Google-Smtp-Source: AMsMyM6TBXDfm/pGD0k5oTkNbWJyid22PslIvgOBGK78STO6MlsGg1SrfsSSIk4OqOumR2g5HLA/ X-Received: by 2002:a17:902:b60e:b0:188:5e9a:bf6e with SMTP id b14-20020a170902b60e00b001885e9abf6emr16486811pls.96.1667754282132; Sun, 06 Nov 2022 09:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667754282; cv=none; d=google.com; s=arc-20160816; b=H1Ihm0cZ1R/OINVNNnBoKQl/PrKleYT0/OMdZay2NAgjISR+meRUBrO9dbDM6cYzBB XiB+JOqMeliaU8j4u3U8I+cMjORnM5bXsUG3bX2ghMz0TNVNr6msJZImSu6A3hXQ/vm4 EBK+Ps6qUhOgEO0G45ll6/XUxNZIhqYSNH5HvgFn+TVhF2DzhqfZyI16bH6HlEtrPwCe e9PcSerU+9yG6tUP0S1hT8rdfp+5snEEQAZ6GAt7O5azgJ2BcshrfSRgHEUv1mgwkH5g EEn1YqKPMe2kX4A5XxgPfV7CLSvxv9u21pfn8o23VpBxZmnVPVwYxFYv1vu8GO3Ksfqg mJ3w== 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=7iKIq+CcEWvs/XWtw3Cepa76zY6Rm46nyY8ukItkHhE=; b=ZY7KElxMqyAIxPnvaPah9T02SsDUy16+HrNKc0+HTyVmvaXktVKjQ4OqOPMHMdmpVW tIotFuLt5Ah2aoFPZuqvcV5lzZAc6yt78IfFvxYw/ZBQcFnaCpCfNY9ubeyIoy/FqAfv TZGdIK2y2REsKQZ+dCzzQX19UIf4+yipWjq2pbkaZCjrGHn9Dze8tKJKVYEVzzINM+fN bxGTjddVlGPL6dHFSgKSIZ+G8jm7bN82Qcqyb7kz5HXz4x1pN/DZ5WjxbBiWXAwQs/hf li6fu09tIGPqv87RWpVotkln7XMjK5+oKB6LSG8ENTysEy2M4xJBVZD5L6sttiziEFR8 DkWw== 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 ja1-20020a170902efc100b00186f22a06absi6688178plb.253.2022.11.06.09.04.29; Sun, 06 Nov 2022 09:04:42 -0800 (PST) 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 S230050AbiKFQzO (ORCPT + 97 others); Sun, 6 Nov 2022 11:55:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiKFQzM (ORCPT ); Sun, 6 Nov 2022 11:55:12 -0500 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 B7E92D2DB for ; Sun, 6 Nov 2022 08:55:11 -0800 (PST) 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 1oriuk-0002rz-RM; Sun, 06 Nov 2022 17:54:30 +0100 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 1oriuc-002h3E-6Q; Sun, 06 Nov 2022 17:54:23 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oriuc-00EnGf-DQ; Sun, 06 Nov 2022 17:54:22 +0100 Date: Sun, 6 Nov 2022 17:54:22 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Dawei Li Cc: rafael@kernel.org, gregkh@linuxfoundation.org, dvhart@infradead.org, andy@infradead.org, lenb@kernel.org, arnd@arndb.de, peterhuewe@gmx.de, kys@microsoft.com, kronos.it@gmail.com, dmitry.torokhov@gmail.com, bleung@chromium.org, sujith.thomas@intel.com, vithampi@vmware.com, lee@kernel.org, wim@linux-watchdog.org, jgross@suse.com, davem@davemloft.net, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] acpi: make remove callback of acpi driver void Message-ID: <20221106165422.nzfw36oj5q2splnc@pengutronix.de> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5moduzi7cpupfm5g" Content-Disposition: inline In-Reply-To: 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 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 --5moduzi7cpupfm5g Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Sun, Nov 06, 2022 at 10:57:53PM +0800, Dawei Li wrote: > For bus-based driver, device removal is implemented as: > 1 device_remove()-> > 2 bus->remove()-> > 3 driver->remove() >=20 > Driver core needs _no_ inform from callee(bus driver) about the > result of remove callback. In that case, > commit ("bus: Make remove callback return void") > forces struct bus_type::remove() be void-returned. >=20 > Now we have the situation that both 1 & 2 of calling chain are > void-returned, so it does _not_ make much sense for 3(driver->remove) > to return non-void to its caller. >=20 > So the basic idea behind this change is making remove() callback of > any bus-based driver to be void-returned. >=20 > This change itself, is for device drivers based on acpi-bus. >=20 > Signed-off-by: Dawei Li Nice, Acked-by: Uwe Kleine-K=F6nig It might be worth to point out that the callers of the remove callback (i.e. acpi_device_probe and acpi_device_remove) silently ignore the return value already today and even since before commit fc7a6209d571 ("bus: Make remove callback return void"). Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --5moduzi7cpupfm5g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmNn5rUACgkQwfwUeK3K 7AlTjQf+K0rkXg+pdZx8uSNDOuTNU9kQ72zhGVpvKFigssmjZaOEF/wS3Oo1tevR vGR5P6PS0KxA9M8H7DnALX6kZzdCzshaPOm9DIpr3HsouslN7IPEiUzM9NJuq4ln TFlBJWxxcZgevgQJ2UlzE8uPEFEyfAsBlfuhBMhfd0zrmfnskphEhyxaGT9FesZ3 LwMnVGzRAT4KHsAS+TkVh3200gQVpBCjZz3ZcVRcjJ72faWxdpXaDYtvTgWRid2X QmEXwBMpcMjUWtdbNbFzev4DY/dW4INYKejXKYeG8Kjn7dtdVxzRWGlz8NjHWuD2 wI3uD23kdo0lU3Ls+bxqVidZP0w9Wg== =flOm -----END PGP SIGNATURE----- --5moduzi7cpupfm5g--