Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp618846rwb; Wed, 9 Nov 2022 06:49:32 -0800 (PST) X-Google-Smtp-Source: AMsMyM5kX0Yk9DiML3uZNqyByhhhn08RgPgkHBebGRnZYheWIIaxewNllLIAAmM92D2MvgPnwqRL X-Received: by 2002:a17:90b:3e81:b0:213:f86b:f94b with SMTP id rj1-20020a17090b3e8100b00213f86bf94bmr51031405pjb.134.1668005372594; Wed, 09 Nov 2022 06:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668005372; cv=none; d=google.com; s=arc-20160816; b=stCKV0hR/WT5p89q7mLw+X6ouWk78D7DcCvwgVbRLCjbJ5PdY0At9jSo9sIEGl82Lm l9tcSaoYJtDywHqXeq0HyEA8u62Q/pPtxnQAlBbY3BhJRVv00aAMf4m5H2594VG/aw+B eE26Fu54UszLiJgahR/eE5Ih8KYJTk7kIZdoc5agkiNrcR5G2nJKFi0L5lV//EbCWaV8 9arbqX91LzOrg2T5NzYCyVn7JPcDDvIF4+MPqALgkEXdnOPS2ywARRnsxQL6u9vq6Tnh j5Xhi5BqkzRzceKzr3nB6bSdFB58a5oPi5eDxhqLT1J3VcDXjScbb/UEL4gBr6RYJZAi 2hdg== 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:dkim-signature; bh=A6enTnzt6tJmVj9Q7JZvPN7ffMtQf5ftYMf/zXfNfLY=; b=iuargOYJc8kiVmrAEPi9jTEbJZq4ChjcGdrKvyHUOMo46H/ge9PhX8oTNGNiQ0fwJt SC767o7nTM/kRQJ8m8PaT+yDqnD1ViFZ0N1aP485naCp6iqarjcVdumK3eAgSzIgJxt5 EgX5Xh7sfksT5WTEJg2HzIto741yriQG9VXoxINb1eYn41u+kcAbILfsUrkXXmkXDAqZ 693oyNtsu21os5xZ5onbP5Xby7HXrovCkJ5ZIKiRSgGuoz4OoRqC2GEx9rUHebn8uX8E 5yau/wLJLqfcguSDvd/RNcFRqrMNG6DDLHMlnp13o7fTTvgwMFTUZeJQkCB0CU0y+KQy iu8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pq2FSoOQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u31-20020a63235f000000b00440395dafc7si17939342pgm.187.2022.11.09.06.49.19; Wed, 09 Nov 2022 06:49:32 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pq2FSoOQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbiKINpS (ORCPT + 92 others); Wed, 9 Nov 2022 08:45:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiKINpQ (ORCPT ); Wed, 9 Nov 2022 08:45:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 329BD13D47; Wed, 9 Nov 2022 05:45:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE1CEB81EC6; Wed, 9 Nov 2022 13:45:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66A91C433D6; Wed, 9 Nov 2022 13:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668001513; bh=E27wU8CHwv3ph1+Lgq64qqtraNEyNswv/8Z7MWYYWxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pq2FSoOQFazxaPMW/IG7R+nPNOQZwBB6RzA4oHece//Rw6OlsnZpWUBcnZ9GIaikT 5AfEKyeL8SpUgaHcBK0HKvns8BHwK/5dlvIdd88q7hx8+osRPeyqmKcNm3dcNJ49bj +jpUmZznxU+eVTxvrl3DkbLgyhTN1eXZ/IFBzS+k= Date: Wed, 9 Nov 2022 14:45:09 +0100 From: Greg KH To: Dawei Li Cc: rafael@kernel.org, u.kleine-koenig@pengutronix.de, 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: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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() > > 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. > > 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. > > So the basic idea behind this change is making remove() callback of > any bus-based driver to be void-returned. > > This change itself, is for device drivers based on acpi-bus. > > Signed-off-by: Dawei Li As RFC patches don't mean to be applied, I'll wait for a real version to be submitted before reviewing this. thanks, greg k-h