Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4614476pxv; Tue, 6 Jul 2021 05:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm8s/Q+0vOTOBSuH/V2szxSznlN+rBsO8ezb0x51bZw8dVCclULOLgNUdCJpcu6CrznopF X-Received: by 2002:a17:906:2844:: with SMTP id s4mr18132966ejc.263.1625574103141; Tue, 06 Jul 2021 05:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625574103; cv=none; d=google.com; s=arc-20160816; b=pQh+1iLuZtKPO5qDL7d9wBQbdr3zPr157ok0nbpWfqhbj6knTTIXSTIHxUnwFjDMqP Key/3xnTYsA07iGMpb659ffl711385rJEWX83GbqVaSr0GwoKikEH7pEO2bD04HInbva unDKf2zkYO8XQllG2xxv3gBHfq+q7NFdxsfytY0ChUYqNXhvqPrQYmqlh4hve4Y7gyfn R6APPG8BphzbRTQzjVaAth0yiNDdhsT1gXxHeyjbmL08ZWEyg58np39qkACGo5uEIWn6 HNm1T02CEqxS7KLK6XO8ysma4GOYb+sZ17WIdTNd1QgoGL6XXMpYb9ac2mBaPX8sPVBU ZkPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CDGtQ2yb8IShQ7cIRYFiJmp1Uu5BANeA/6Jg/xILJy0=; b=f6237+BOcYS0PbfiHkDOzfPUENuaVW6AijLNJcvj8d5fgSx+bVWP+8wlJ6vGgtjnU1 Lgh6PD7YrSiGcKKfWOZBpImMelApmtMMmOAm2l2AkFxn8SmRbVVHxiQWUJ0Ks5oL6QZn G3JWpnr1OorCMrbQg9VUhopLaX1e1y2UQDIAvOAkA7Mr4uI9Il5OY49jIaFY26OU4Q/N OIxaeeoy9hRgZjr0FDNWQJjNh5bup2sDC2RSU0hMx6FbpTpVMkSIKunV5Mhtw5SI4Haw I8UOyWfXRYU2wWG2z566Reax6DVKaf5SwiGnlb5JFFSGiQHuLWFOmb7/dYjTebk2gf8I dy6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TwRJy6+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si2660702edt.41.2021.07.06.05.21.19; Tue, 06 Jul 2021 05:21:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TwRJy6+J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233813AbhGFMWS (ORCPT + 99 others); Tue, 6 Jul 2021 08:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243274AbhGFMDZ (ORCPT ); Tue, 6 Jul 2021 08:03:25 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 250ABC0613AC; Tue, 6 Jul 2021 04:42:37 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id j11so27557227edq.6; Tue, 06 Jul 2021 04:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CDGtQ2yb8IShQ7cIRYFiJmp1Uu5BANeA/6Jg/xILJy0=; b=TwRJy6+J3urIn/EOHkX70XQHrPpIXFIOoiquz6eJSwyU/SQIQ4dADKORnRQAYcVLDd bGmCH+O3vZ/zwAN03+xnrlCOWn/T/Pz6KfPYlHzOgGXWb72eEAEAjVLMxY3sV52LOQiu 4sMepvP8f2M/NuGTEEUpcS9djTSXyNUocbOOHuCxDZ/swc4Yj2krBjOK18+xBOWwYw7y O/LcWjnu0kdZ4pmyv7jFfFo0qSdeTOdmtP2CciCXwcdnQ5FYkYueWY1vZLSQqxLbXVdx xHWyXJmiVDLrlTvE9QGQSNArUJUGdY04ySHX3mfxNurDFI1sFLhNw1IKyh/ZzycJEC6f piBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CDGtQ2yb8IShQ7cIRYFiJmp1Uu5BANeA/6Jg/xILJy0=; b=cSIW3JOIioAioIfgYKQyQqSazD73CO2PhkvK0JpGSXcRxwlVCIhPlMy2RNwRC1MezP BZ6h7/kkDgQ3vWimxPSP4mzUaGDt3EzWppD0JS17YAmF+WeMh8uX+T8RGBLrP1yn9PRd 7eiSxAMicNAC7ITetPISq3ES+JtI8d2MqrQXZ9OrUMbvPlFwZGfhN0arPSs6IUkqCOcX 7/5i+a2zAxbp3eKkAsq1+S0YeP3DdunBCJ7tBY5HrLzTvvsMNevnmiKoKYvViPuTMssR 3sCbpDUd/WDNCgYKdsmah+f8KbMhn4fyLfNLhWiuKnOWvf1HIIgc7XRx6t2Flm9df9IF dO8A== X-Gm-Message-State: AOAM531si/HgMyvSBgLiARPQKINfzHpo1CAX05lwHmmBW914p2HvS2Mz xYqcLlPqWc3xfYVAzVqH/8c= X-Received: by 2002:a05:6402:1c06:: with SMTP id ck6mr22330893edb.287.1625571755735; Tue, 06 Jul 2021 04:42:35 -0700 (PDT) Received: from [192.168.2.202] (pd9e5a48a.dip0.t-ipconnect.de. [217.229.164.138]) by smtp.gmail.com with ESMTPSA id eb9sm5646083ejc.32.2021.07.06.04.42.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 04:42:35 -0700 (PDT) Subject: Re: [PATCH] bus: Make remove callback return void To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Maxime Ripard , Jiri Kosina , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Johannes Thumshirn , Mauro Carvalho Chehab , Arnd Bergmann , Jakub Kicinski , "David S. Miller" , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , Bjorn Helgaas , Hans de Goede , Mark Gross , Bjorn Andersson , Andy Gross , Mark Brown , Stephen Boyd , Johan Hovold , Alex Elder , Mika Westerberg , Rob Herring , Jiri Slaby , Stefano Stabellini , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Adrian Hunter , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-acpi@vger.kernel.org, linux-wireless@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-cxl@vger.kernel.org, nvdimm@lists.linux.dev, dmaengine@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-input@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-i2c@vger.kernel.org, linux-i3c@lists.infradead.org, industrypack-devel@lists.sourceforge.net, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-ntb@googlegroups.com, linux-pci@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-staging@lists.linux.dev, greybus-dev@lists.linaro.org, target-devel@vger.kernel.org, linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org References: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> From: Maximilian Luz Message-ID: <07c08230-6c71-2a73-c89f-05b9b5de78ab@gmail.com> Date: Tue, 6 Jul 2021 13:42:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/6/21 11:50 AM, Uwe Kleine-König wrote: > The driver core ignores the return value of this callback because there > is only little it can do when a device disappears. > > This is the final bit of a long lasting cleanup quest where several > buses were converted to also return void from their remove callback. > Additionally some resource leaks were fixed that were caused by drivers > returning an error code in the expectation that the driver won't go > away. > > With struct bus_type::remove returning void it's prevented that newly > implemented buses return an ignored error code and so don't anticipate > wrong expectations for driver authors. > > Signed-off-by: Uwe Kleine-König > drivers/platform/surface/aggregator/bus.c | 4 +--- Acked-by: Maximilian Luz