From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
David Airlie <airlied@linux.ie>,
Linus Walleij <linus.walleij@linaro.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Jaroslav Kysela <perex@perex.cz>, Eric Anholt <eric@anholt.net>,
Jiri Slaby <jirislaby@kernel.org>, Rob Herring <robh@kernel.org>,
Herbert Xu <herbert@gondor.apana.org.au>,
Russell King <linux@armlinux.org.uk>,
Krzysztof Kozlowski <krzk@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Guenter Roeck <linux@roeck-us.net>,
kernel@pengutronix.de, Arnd Bergmann <arnd@arndb.de>,
Alex Williamson <alex.williamson@redhat.com>,
Mark Brown <broonie@kernel.org>, Matt Mackall <mpm@selenic.com>,
Dan Williams <dan.j.williams@intel.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
linux-arm-kernel@lists.infradead.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Cornelia Huck <cohuck@redhat.com>, Takashi Iwai <tiwai@suse.com>,
linux-kernel@vger.kernel.org, Vinod Koul <vkoul@kernel.org>,
Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [PATCH v2 4/5] amba: Make the remove callback return void
Date: Thu, 3 Dec 2020 11:36:16 -0800 [thread overview]
Message-ID: <X8k+MDeyKZCWxMOw@google.com> (raw)
In-Reply-To: <20201203130141.ys2s7aaltyzkdena@pengutronix.de>
On Thu, Dec 03, 2020 at 02:01:41PM +0100, Uwe Kleine-König wrote:
> Hello,
>
> [This is a resend because somehow my MUA failed to parse the To: list
> and dropped it without me noticing it. Sorry to those who got it twice
> now.]
>
> On Tue, Nov 24, 2020 at 02:31:38PM +0100, Uwe Kleine-König wrote:
> > From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> >
> > All amba drivers return 0 in their remove callback. Together with the
> > driver core ignoring the return value anyhow, it doesn't make sense to
> > return a value here.
> >
> > Change the remove prototype to return void, which makes it explicit that
> > returning an error value doesn't work as expected. This simplifies changing
> > the core remove callback to return void, too.
> >
> > Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
> > Reviewed-by: Arnd Bergmann <arnd@arndb.de>
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> > drivers/amba/bus.c | 5 ++---
> > drivers/char/hw_random/nomadik-rng.c | 3 +--
> > drivers/dma/pl330.c | 3 +--
> > drivers/gpu/drm/pl111/pl111_drv.c | 4 +---
> > drivers/hwtracing/coresight/coresight-catu.c | 3 +--
> > drivers/hwtracing/coresight/coresight-cpu-debug.c | 4 +---
> > drivers/hwtracing/coresight/coresight-cti-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-etb10.c | 4 +---
> > drivers/hwtracing/coresight/coresight-etm3x-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-funnel.c | 4 ++--
> > drivers/hwtracing/coresight/coresight-replicator.c | 4 ++--
> > drivers/hwtracing/coresight/coresight-stm.c | 4 +---
> > drivers/hwtracing/coresight/coresight-tmc-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-tpiu.c | 4 +---
> > drivers/i2c/busses/i2c-nomadik.c | 4 +---
> > drivers/input/serio/ambakmi.c | 3 +--
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Thanks.
--
Dmitry
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Matt Mackall <mpm@selenic.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
Dan Williams <dan.j.williams@intel.com>,
Vinod Koul <vkoul@kernel.org>, Eric Anholt <eric@anholt.net>,
David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Linus Walleij <linus.walleij@linaro.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Mark Brown <broonie@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>,
Alex Williamson <alex.williamson@redhat.com>,
Cornelia Huck <cohuck@redhat.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Russell King <linux@armlinux.org.uk>,
Arnd Bergmann <arnd@arndb.de>, Rob Herring <robh@kernel.org>,
kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 4/5] amba: Make the remove callback return void
Date: Thu, 3 Dec 2020 11:36:16 -0800 [thread overview]
Message-ID: <X8k+MDeyKZCWxMOw@google.com> (raw)
In-Reply-To: <20201203130141.ys2s7aaltyzkdena@pengutronix.de>
On Thu, Dec 03, 2020 at 02:01:41PM +0100, Uwe Kleine-König wrote:
> Hello,
>
> [This is a resend because somehow my MUA failed to parse the To: list
> and dropped it without me noticing it. Sorry to those who got it twice
> now.]
>
> On Tue, Nov 24, 2020 at 02:31:38PM +0100, Uwe Kleine-König wrote:
> > From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> >
> > All amba drivers return 0 in their remove callback. Together with the
> > driver core ignoring the return value anyhow, it doesn't make sense to
> > return a value here.
> >
> > Change the remove prototype to return void, which makes it explicit that
> > returning an error value doesn't work as expected. This simplifies changing
> > the core remove callback to return void, too.
> >
> > Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
> > Reviewed-by: Arnd Bergmann <arnd@arndb.de>
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > ---
> > drivers/amba/bus.c | 5 ++---
> > drivers/char/hw_random/nomadik-rng.c | 3 +--
> > drivers/dma/pl330.c | 3 +--
> > drivers/gpu/drm/pl111/pl111_drv.c | 4 +---
> > drivers/hwtracing/coresight/coresight-catu.c | 3 +--
> > drivers/hwtracing/coresight/coresight-cpu-debug.c | 4 +---
> > drivers/hwtracing/coresight/coresight-cti-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-etb10.c | 4 +---
> > drivers/hwtracing/coresight/coresight-etm3x-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-funnel.c | 4 ++--
> > drivers/hwtracing/coresight/coresight-replicator.c | 4 ++--
> > drivers/hwtracing/coresight/coresight-stm.c | 4 +---
> > drivers/hwtracing/coresight/coresight-tmc-core.c | 4 +---
> > drivers/hwtracing/coresight/coresight-tpiu.c | 4 +---
> > drivers/i2c/busses/i2c-nomadik.c | 4 +---
> > drivers/input/serio/ambakmi.c | 3 +--
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Thanks.
--
Dmitry
next prev parent reply other threads:[~2020-12-03 19:37 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 13:31 [PATCH v2 0/5] amba: minor fix and various cleanups Uwe Kleine-König
2020-11-24 13:31 ` Uwe Kleine-König
2020-11-24 13:31 ` [PATCH v2 1/5] amba: Fix resource leak for drivers without .remove Uwe Kleine-König
2020-11-24 13:31 ` Uwe Kleine-König
2020-11-24 13:31 ` [PATCH v2 2/5] amba: reorder functions Uwe Kleine-König
2020-11-24 13:31 ` Uwe Kleine-König
2020-11-24 13:31 ` [PATCH v2 3/5] vfio: platform: simplify device removal Uwe Kleine-König
2020-11-24 13:31 ` Uwe Kleine-König
2020-12-02 15:15 ` Auger Eric
2020-12-02 15:15 ` Auger Eric
2020-11-24 13:31 ` [PATCH v2 4/5] amba: Make the remove callback return void Uwe Kleine-König
2020-11-24 13:31 ` Uwe Kleine-König
2020-12-03 11:53 ` Uwe Kleine-König
2020-12-03 11:53 ` Uwe Kleine-König
2020-12-03 13:01 ` Uwe Kleine-König
2020-12-03 13:01 ` Uwe Kleine-König
2020-12-03 14:11 ` Krzysztof Kozlowski
2020-12-03 14:11 ` Krzysztof Kozlowski
2020-12-03 14:16 ` Mark Brown
2020-12-03 14:16 ` Mark Brown
2020-12-03 19:36 ` Dmitry Torokhov [this message]
2020-12-03 19:36 ` Dmitry Torokhov
2020-12-14 20:40 ` Uwe Kleine-König
2020-12-14 20:40 ` Uwe Kleine-König
2020-12-17 10:00 ` Linus Walleij
2020-12-17 10:00 ` Linus Walleij
2020-12-03 13:44 ` Alexandre Belloni
2020-12-03 13:44 ` Alexandre Belloni
2020-11-24 13:31 ` [PATCH v2 5/5] amba: Make use of bus_type functions Uwe Kleine-König
2020-11-24 13:31 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=X8k+MDeyKZCWxMOw@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=airlied@linux.ie \
--cc=alex.williamson@redhat.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexandre.belloni@bootlin.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=cohuck@redhat.com \
--cc=dan.j.williams@intel.com \
--cc=daniel@ffwll.ch \
--cc=eric@anholt.net \
--cc=gregkh@linuxfoundation.org \
--cc=herbert@gondor.apana.org.au \
--cc=jirislaby@kernel.org \
--cc=kernel@pengutronix.de \
--cc=krzk@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=linux@roeck-us.net \
--cc=mpm@selenic.com \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=tiwai@suse.com \
--cc=u.kleine-koenig@pengutronix.de \
--cc=ulf.hansson@linaro.org \
--cc=vkoul@kernel.org \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.