Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4742090pxv; Tue, 6 Jul 2021 08:07:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB7D7hTOe5PGvUhefTEVN78WsnKtsO7Jd6rZ31NlH/Ff/nzmZFWpR64vTR5hbKpEdEeiES X-Received: by 2002:a17:906:a0ce:: with SMTP id bh14mr12475587ejb.434.1625584075571; Tue, 06 Jul 2021 08:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625584075; cv=none; d=google.com; s=arc-20160816; b=q35H8kIHh5pjvAuCv+F0EgHEoVBo2vX+JiKez3axZg6X0lE7IluWDlWhnjsmDTPfu2 ooP556iUYWMGCDRA3mXpo/YVRWZjscrfg+8LUWe4eXMq/Azmg353lXYRj/E6c2i9nwhz 9ZXHm0R1sDK3ffsNfngLBKmRtYn6kmfEB4Gn/yQaabMWlUtmCjiDiA0cuFXw0JHnops2 ODthF6QXi9tcufr23Thixm9GLtyikaSS5TT3s30DHuFeTHrBGzJV3ODlF3+Z1rYJ9iYG TrgB56za0Oc8LeIOd3G3A9BsO8rmgymHTeHEaz5dBYXZ++C6FsheXzern71UIoXNDj3Q qHKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+9dsgPbS//aUCZUFixPgGcG7qxsG2EJ3dbyOzFDh8TA=; b=RnaXJ77k7x6b9hZwCjP3Ob8O2oQNAUONAhnLhhzW7i9e9hN7Wrudvm12eB8r2BAlaX saA0pMaPL9gOGo/iduRnaFQBefuPc32f6DbnH8+41W8gnXP5gOSzdcM8YTBcQbulwOjZ mcTtX2Q/nISWKmAi9Bg+iqszcal/RFi9Yp2zkhFxpMTwpjr6G1T8gAajRTUZy41SrPvL zsBodI/7EjbqCp6XWvNECbm5HFPBaorOq0xkxSLQmEQWLJf/SG7qCbbEmkvguX4pazCx sg4xUCNw8sHx7bZIBAquh7io0+cczi4mLumfg6AaNc9GZxxb0kKfQp5DS/qCZR08EGVj mtYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SBHfWn82; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 18si14890767ejj.568.2021.07.06.08.07.28; Tue, 06 Jul 2021 08:07:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=SBHfWn82; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S232438AbhGFPJv (ORCPT + 99 others); Tue, 6 Jul 2021 11:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbhGFPJq (ORCPT ); Tue, 6 Jul 2021 11:09:46 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46497C061788; Tue, 6 Jul 2021 08:07:06 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id o5so34696731ejy.7; Tue, 06 Jul 2021 08:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+9dsgPbS//aUCZUFixPgGcG7qxsG2EJ3dbyOzFDh8TA=; b=SBHfWn821HxdveyktStHQrYDe4MbFpbgRsAdNfnT39UeMrTpAkqi5Mw9J7eZv7cX8o 4IiMGVVUkNi11aAd4XiuIPLnSf4etnUsfgOrP0HPkyuBpadE2fbx2e+Mv3rlJzIHAso+ o7XaFo1UlSb/NBSAjQV11bNqf2gionJphJcRl4YCGJk45hXp5V+Gpo6AbrJv2xqP31dM +oUmVZwHbjtRk+sinfDNsF+kPOGLbKlYnyzpn0vB+NsB4Whl5CCwUy8NwaOykBdFTFHG XhUidv7/qS7jG1fnPfvqgohVjfRj0vLF0MFd7Vbksyj/BKvpyZ1bN9xNMq5MG35cMCap n6sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+9dsgPbS//aUCZUFixPgGcG7qxsG2EJ3dbyOzFDh8TA=; b=GDK7yvJvkcDOuPd0uIRrklR1fc6X7B2sU57pxliIxWldT6etwwBX8TwCLvuj14fz21 10+FnocJ1Nf1KgZIxlUyZNiijcTcPmKM/MNhL1nyxZjiY2f51zQfp03R3wJqgcGTcXQq FKh/ZTlL06yn2nS/kniWLxoLMPN1rmwgtdWw4LZDaPBpoivi9qW7/Zg8Z4y3aSuUyddY gBOkyw9VSs6XhOURFFHiCROfItMIp++tDvYqPO6aBUcopht1b6yI3wQPcfxIt3sl+UC1 sY6VtjB9akJYDB9UPWQDVJXJxVLvec0DQ5kivlLhf1cftFzDspxiVWEHcEu+GQ4181uC FeIw== X-Gm-Message-State: AOAM530hgMwsR1/NSD6un3semUevKXDa5CS4HQujFsMrYlnoeCr4Qb8B Pek3sZhMqm+xuQqOdNKHcxmYK5qRmH9F1IDrQ6w= X-Received: by 2002:a17:907:6289:: with SMTP id nd9mr19151547ejc.384.1625584024338; Tue, 06 Jul 2021 08:07:04 -0700 (PDT) MIME-Version: 1.0 References: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> In-Reply-To: <20210706095037.1425211-1-u.kleine-koenig@pengutronix.de> From: Yehezkel Bernat Date: Tue, 6 Jul 2021 18:06:47 +0300 Message-ID: Subject: Re: [PATCH] bus: Make remove callback return void To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Greg Kroah-Hartman , kernel@pengutronix.de, LKML , Russell King , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Geoff Levand , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , "Rafael J. Wysocki" , Len Brown , William Breathitt Gray , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Dan Williams , Dave Jiang , Vinod Koul , Stefan Richter , Sudeep Holla , Cristian Marussi , Wu Hao , Tom Rix , Moritz Fischer , Jiri Kosina , Benjamin Tissoires , Srinivas Pandruvada , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Alexander Shishkin , Wolfram Sang , Alexandre Belloni , Dmitry Torokhov , Samuel Iglesias Gonsalvez , Jens Taprogge , Johannes Thumshirn , Mauro Carvalho Chehab , Maxim Levitsky , Alex Dubov , Ulf Hansson , Lee Jones , Tomas Winkler , Arnd Bergmann , Jakub Kicinski , "David S. Miller" , Jon Mason , Allen Hubbe , Kishon Vijay Abraham I , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Dominik Brodowski , Maximilian Luz , Hans de Goede , Mark Gross , Matt Porter , Alexandre Bounine , Ohad Ben-Cohen , Bjorn Andersson , Mathieu Poirier , "Martin K. Petersen" , Thorsten Scherer , Srinivas Kandagatla , Andy Gross , Mark Brown , Stephen Boyd , Michael Buesch , Sven Van Asbroeck , Johan Hovold , Alex Elder , Andreas Noever , Michael Jamet , Mika Westerberg , Rob Herring , Jiri Slaby , Heikki Krogerus , "Michael S. Tsirkin" , Jason Wang , Kirti Wankhede , Alex Williamson , Cornelia Huck , Martyn Welch , Manohar Vanga , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Johannes Berg , Jaroslav Kysela , Takashi Iwai , Marc Zyngier , Tyrel Datwyler , Vladimir Zapolskiy , Samuel Holland , Qinglang Miao , Alexey Kardashevskiy , Kai-Heng Feng , Joey Pabalan , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Adrian Hunter , Frank Li , Mike Christie , Bodo Stroesser , Hannes Reinecke , David Woodhouse , SeongJae Park , Julien Grall , 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 , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Jul 6, 2021 at 12:50 PM Uwe Kleine-K=C3=B6nig 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=C3=B6nig > --- > > drivers/thunderbolt/domain.c | 4 +--- For Thunderbolt: Acked-by: Yehezkel Bernat