Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp723813rwb; Wed, 9 Nov 2022 07:59:06 -0800 (PST) X-Google-Smtp-Source: AMsMyM5VhA+eFJvYprKkcyg/Iy3bn2/7fD1xQQn9irnBr2JSHHqzww5SBKce83LyQZf0pXyEgkAm X-Received: by 2002:a17:906:2ac5:b0:7ad:bc84:2f23 with SMTP id m5-20020a1709062ac500b007adbc842f23mr1345111eje.262.1668009545774; Wed, 09 Nov 2022 07:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668009545; cv=none; d=google.com; s=arc-20160816; b=1Gee7HL36Ou27VspyJDiFaU0xjX9juI2KoEXPVRqHu3EFfF/zX6f8AkH3UJ7NBv9qq uABh/FFPGgzNwVSGxwYxXCd/KoMFZYrvD6ZfvUROGm2msJ2UfpwOpkfuEflG8HIxVDCC iV4o7b8ZNSgKE+3CxjDsUA0v7Q/rAILkpzJB3ZFruc9oQwJ3g758jGSxvYwMkN31NHlB s8NnuOQ0MKzHQLqnZGyaVsCzQwhU8UsWRgzhOGs/78inWXZ/f8sYb+IwpFl7i+DWirgB SaPsFNNPy50Dx6tkCgKL+Xcft8L+jmVunIQgJSv5BQ7qTQfrKFsnvWZVJtu9kUbQW7Hn tikg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=f0whdKlPSyWQpEW/UnAQbhvhiiMdZQhh1ZOsdVS1cR8=; b=OZjcFRalJccJKg1QmmqMGw9D12Bf9FAMURW6fUoBCEhNuKJ+ZmWgmDkJ+LHus6KiJx eTn/AtaDaQ2z/HiDXvHG73H5td9hHJ/92KhD0jOmEMs6LnWW9E/+G5AB56b+DeXcFQPK NUtWIuP8eX2apbsVPEnDb9XhM/zThJUoWiwfo16gCaX/amjmV0Yljdmus5EPryeze0ov GtKX9JMRnmyZ8A26keTnHESkZlfcl7y9a86Ra9FxBqfjcOlxgeRvUqbbqz7c99dvHQYH ob8Hj53tgD8Ri0hFp6ml4/Xnxx9Udi30JFZ2CRy4/or+fZqS5nfnzj6yXI2hiM1ttYtO xXvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f09x7VmU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht12-20020a170907608c00b0073dda1430b9si17218759ejc.403.2022.11.09.07.58.41; Wed, 09 Nov 2022 07:59:05 -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=@gmail.com header.s=20210112 header.b=f09x7VmU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbiKIOhH (ORCPT + 93 others); Wed, 9 Nov 2022 09:37:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbiKIOgy (ORCPT ); Wed, 9 Nov 2022 09:36:54 -0500 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E49510562; Wed, 9 Nov 2022 06:36:50 -0800 (PST) Received: by mail-qv1-xf2e.google.com with SMTP id u7so12369070qvn.13; Wed, 09 Nov 2022 06:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=f0whdKlPSyWQpEW/UnAQbhvhiiMdZQhh1ZOsdVS1cR8=; b=f09x7VmU0IQ8+qLiS0UMhfA9r3y2kbJpJrxILrlGWT8DLoNfWQTtCdirgBezcAD/+5 gKqp0dc3OP8opVPx9GYJezkxzQEHg9AlchuHRx2ghUGm0aKuKwzYYxHwc5uE1ewK4ibg m3eGNeakro4/igduPmV0mLHXoWkNy9rtqLoEzNSHjc40VNPQXT6pYR0qnqngjyWZ34Ki htK89E/LG/yYNh7LB1HYC4PAXSRgmdr/Oq2uIzpL05O+9irmreyTmOZSUnv4mjDZt0iT 1g1LEqlMivmacAnoswC15gSQAKFXa1mnW8OfIKevwdfWJ+pwP10iglsZz9YvX80XCdBD NfEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f0whdKlPSyWQpEW/UnAQbhvhiiMdZQhh1ZOsdVS1cR8=; b=CufqmmnxKTQkwJf62fTa9/HKEnCpG9A8k74DKfp+zF91fORCamZLYtxqfGBMYPhiF6 Hl7+JOFrTBaX0x6eL7yIJ9UXc9bbvtAV3Frh6rR7LqONjheXCqjAJFE46vxefL6+ZbHo ub4GXxrmzT8x9ePoMS22RdIPU6rM4kecofhQiYAZCbo//uFg1w8vF9ASQvk4DwnYiY4x yuRvzrZvJxxVYCmrR4zTgy8o6gjn+bG+crt4Cv016IkIAIcReh/z1EdxsHIg1+Ocg4+b FtDsD++UJqMclDnJfijpbvGomr+vXoNRrrtuFZ5yfTeKIV7VTz1vPPIOLNpfw8uVSnp5 dvzA== X-Gm-Message-State: ACrzQf33ZTFHKEgltGc8kZKArT52AGCTIJekvYXCw3ka1sjzawtZR7Rn byk9bvVb63DOUWInRs41A0HQFmnx32WUzJPfDEA= X-Received: by 2002:ad4:51cf:0:b0:49a:f34e:cfa7 with SMTP id p15-20020ad451cf000000b0049af34ecfa7mr1110515qvq.48.1668004609231; Wed, 09 Nov 2022 06:36:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andy Shevchenko Date: Wed, 9 Nov 2022 16:36:13 +0200 Message-ID: Subject: Re: [RFC PATCH] acpi: make remove callback of acpi driver void To: Greg KH Cc: Dawei Li , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Wed, Nov 9, 2022 at 3:45 PM Greg KH wrote: > 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") Also please read Submitting Patches on how to provide a commit reference in the message body. > > 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. -- With Best Regards, Andy Shevchenko