Re: [PATCH v2 4/4] bus: Make remove callback return void
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v2 4/4] bus: Make remove callback return void
- From: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
- Date: Tue, 6 Jul 2021 20:32:15 +0200
- Cc: nvdimm@xxxxxxxxxxxxxxx, Alexey Kardashevskiy <aik@xxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Samuel Iglesias Gonsalvez <siglesias@xxxxxxxxxx>, Jens Taprogge <jens.taprogge@xxxxxxxxxxxx>, Ulf Hansson <ulf.hansson@xxxxxxxxxx>, Jaroslav Kysela <perex@xxxxxxxx>, Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>, "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx>, Mike Christie <michael.christie@xxxxxxxxxx>, Wei Liu <wei.liu@xxxxxxxxxx>, Maxim Levitsky <maximlevitsky@xxxxxxxxx>, Samuel Holland <samuel@xxxxxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, linux-acpi@xxxxxxxxxxxxxxx, linux-pci@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, Tomas Winkler <tomas.winkler@xxxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Ohad Ben-Cohen <ohad@xxxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxxxxxx>, Alex Elder <elder@xxxxxxxxxx>, linux-parisc@xxxxxxxxxxxxxxx, Geoff Levand <geoff@xxxxxxxxxxxxx>, linux-fpga@xxxxxxxxxxxxxxx, linux-usb@xxxxxxxxxxxxxxx, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-spi@xxxxxxxxxxxxxxx, Thorsten Scherer <t.scherer@xxxxxxxxxxxx>, kernel@xxxxxxxxxxxxxx, Jon Mason <jdmason@xxxxxxxx>, linux-ntb@xxxxxxxxxxxxxxxx, Wu Hao <hao.wu@xxxxxxxxx>, David Woodhouse <dwmw@xxxxxxxxxxxx>, Krzysztof Wilczyński <kw@xxxxxxxxx>, Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>, Manohar Vanga <manohar.vanga@xxxxxxxxx>, linux-wireless@xxxxxxxxxxxxxxx, Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, "James E.J. Bottomley" <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>, target-devel@xxxxxxxxxxxxxxx, Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>, linux-i2c@xxxxxxxxxxxxxxx, Kai-Heng Feng <kai.heng.feng@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>, Ira Weiny <ira.weiny@xxxxxxxxx>, Helge Deller <deller@xxxxxx>, Rafał Miłecki <zajec5@xxxxxxxxx>, industrypack-devel@xxxxxxxxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, Len Brown <lenb@xxxxxxxxxx>, alsa-devel@xxxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, Maxime Ripard <mripard@xxxxxxxxxx>, Johan Hovold <johan@xxxxxxxxxx>, greybus-dev@xxxxxxxxxxxxxxxx, Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, Dave Jiang <dave.jiang@xxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Johannes Thumshirn <morbidrsa@xxxxxxxxx>, Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>, Stephen Boyd <sboyd@xxxxxxxxxx>, Cornelia Huck <cohuck@xxxxxxxxxx>, Wolfram Sang <wsa@xxxxxxxxxx>, Joey Pabalan <jpabalanb@xxxxxxxxx>, Yehezkel Bernat <YehezkelShB@xxxxxxxxx>, Pali Rohár <pali@xxxxxxxxxx>, Bodo Stroesser <bostroesser@xxxxxxxxx>, Alison Schofield <alison.schofield@xxxxxxxxx>, Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>, Tyrel Datwyler <tyreld@xxxxxxxxxxxxx>, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>, Tom Rix <trix@xxxxxxxxxx>, Jason Wang <jasowang@xxxxxxxxxx>, SeongJae Park <sjpark@xxxxxxxxx>, linux-hyperv@xxxxxxxxxxxxxxx, platform-driver-x86@xxxxxxxxxxxxxxx, Frank Li <lznuaa@xxxxxxxxx>, netdev@xxxxxxxxxxxxxxx, Qinglang Miao <miaoqinglang@xxxxxxxxxx>, Jiri Slaby <jirislaby@xxxxxxxxxx>, Rob Herring <robh@xxxxxxxxxx>, Lorenzo Pieralisi <lorenzo.pieralisi@xxxxxxx>, Mark Gross <mgross@xxxxxxxxxxxxxxx>, linux-staging@xxxxxxxxxxxxxxx, Dexuan Cui <decui@xxxxxxxxxxxxx>, Jernej Skrabec <jernej.skrabec@xxxxxxxxx>, Kishon Vijay Abraham I <kishon@xxxxxx>, Chen-Yu Tsai <wens@xxxxxxxx>, linux-input@xxxxxxxxxxxxxxx, Matt Porter <mporter@xxxxxxxxxxxxxxxxxxx>, Allen Hubbe <allenbh@xxxxxxxxx>, Alex Dubov <oakad@xxxxxxxxx>, Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>, Jiri Kosina <jikos@xxxxxxxxxx>, Vladimir Zapolskiy <vz@xxxxxxxxx>, Russell King <rmk+kernel@xxxxxxxxxxxxxxx>, Ben Widawsky <ben.widawsky@xxxxxxxxx>, Moritz Fischer <mdf@xxxxxxxxxx>, linux-cxl@xxxxxxxxxxxxxxx, Michael Buesch <m@xxxxxxx>, Dan Williams <dan.j.williams@xxxxxxxxx>, Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>, Cristian Marussi <cristian.marussi@xxxxxxx>, Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>, "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, Martyn Welch <martyn@xxxxxxxxxxxx>, Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>, linux-mmc@xxxxxxxxxxxxxxx, linux-sunxi@xxxxxxxxxxxxxxx, Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>, Sudeep Holla <sudeep.holla@xxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Sven Van Asbroeck <TheSven73@xxxxxxxxx>, kvm@xxxxxxxxxxxxxxx, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, linux-remoteproc@xxxxxxxxxxxxxxx, Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>, Kirti Wankhede <kwankhede@xxxxxxxxxx>, Andreas Noever <andreas.noever@xxxxxxxxx>, linux-i3c@xxxxxxxxxxxxxxxxxxx, linux1394-devel@xxxxxxxxxxxxxxxxxxxxx, Lee Jones <lee.jones@xxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, linux-scsi@xxxxxxxxxxxxxxx, Vishal Verma <vishal.l.verma@xxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, Andy Gross <agross@xxxxxxxxxx>, linux-serial@xxxxxxxxxxxxxxx, Jakub Kicinski <kuba@xxxxxxxxxx>, Michael Jamet <michael.jamet@xxxxxxxxx>, William Breathitt Gray <vilhelm.gray@xxxxxxxxx>, Hans de Goede <hdegoede@xxxxxxxxxx>, Hannes Reinecke <hare@xxxxxxx>, Adrian Hunter <adrian.hunter@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, Takashi Iwai <tiwai@xxxxxxxx>, Alexandre Bounine <alex.bou9@xxxxxxxxx>, Vinod Koul <vkoul@xxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxx>, Marc Zyngier <maz@xxxxxxxxxx>, dmaengine@xxxxxxxxxxxxxxx, Johannes Berg <johannes@xxxxxxxxxxxxxxxx>, Johannes Thumshirn <jth@xxxxxxxxxx>, Maximilian Luz <luzmaximilian@xxxxxxxxx>
- In-reply-to: <20210706154803.1631813-5-u.kleine-koenig@pengutronix.de>
- References: <20210706154803.1631813-1-u.kleine-koenig@pengutronix.de> <20210706154803.1631813-5-u.kleine-koenig@pengutronix.de>
Hello,
v1 was acked by some more after I stopped looking in my mailbox while
preparing v2:
On Tue, Jul 06, 2021 at 05:48:03PM +0200, 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.
>
> Acked-by: Russell King (Oracle) <rmk+kernel@xxxxxxxxxxxxxxx> (For ARM, Amba and related parts)
> Acked-by: Mark Brown <broonie@xxxxxxxxxx>
> Acked-by: Chen-Yu Tsai <wens@xxxxxxxx> (for drivers/bus/sunxi-rsb.c)
> Acked-by: Pali Rohár <pali@xxxxxxxxxx>
> Acked-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> (for drivers/media)
> Acked-by: Hans de Goede <hdegoede@xxxxxxxxxx> (For drivers/platform)
> Acked-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>
> Acked-By: Vinod Koul <vkoul@xxxxxxxxxx>
> Acked-by: Juergen Gross <jgross@xxxxxxxx> (For Xen)
> Acked-by: Lee Jones <lee.jones@xxxxxxxxxx> (For drivers/mfd)
> Acked-by: Johannes Thumshirn <jth@xxxxxxxxxx> (For drivers/mcb)
> Acked-by: Johan Hovold <johan@xxxxxxxxxx>
> Acked-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx> (For drivers/slimbus)
> Acked-by: Kirti Wankhede <kwankhede@xxxxxxxxxx> (For drivers/vfio)
> Acked-by: Maximilian Luz <luzmaximilian@xxxxxxxxx>
> Acked-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx> (For ulpi and typec)
> Acked-by: Samuel Iglesias Gonsálvez <siglesias@xxxxxxxxxx> (For ipack)
> Reviewed-by: Tom Rix <trix@xxxxxxxxxx> (For fpga)
> Acked-by: Geoff Levand <geoff@xxxxxxxxxxxxx> (For ps3)
Acked-by: Yehezkel Bernat <YehezkelShB@xxxxxxxxx> (For thunderbolt)
Reviewed-by: Mathieu Poirier <mathieu.poirier@xxxxxxxxxx>
Acked-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx> (For intel_th)
Acked-by: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> (For pcmcia)
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|