All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Yisheng Xie <xieyisheng1@huawei.com>
Cc: linux-mips@linux-mips.org, ulf.hansson@linaro.org,
	jakub.kicinski@netronome.com, lgirdwood@gmail.com,
	airlied@linux.ie, linux-pci@vger.kernel.org,
	alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org,
	platform-driver-x86@vger.kernel.org, linux-ide@vger.kernel.org,
	linux-mtd@lists.infradead.org, daniel.vetter@intel.com,
	tglx@linutronix.de, linux-watchdog@vger.kernel.org,
	linux-rtc@vger.kernel.org, boris.brezillon@free-electrons.com,
	andriy.shevchenko@linux.intel.com, vinod.koul@intel.com,
	richard@nod.at, alexandre.belloni@free-electrons.com,
	marek.vasut@gmail.com, industrypack-devel@lists.sourceforge.net,
	jslaby@suse.com, dvhart@infradead.org, linux@roeck-us.net,
	linux-media@vger.kernel.org, devel@driverdev.osuosl.org,
	jason@lakedaemon.net, arnd@arndb.de, b.zolnierkie@samsung.com,
	marc.zyngier@arm.com, linux-mmc@vger.kernel.org,
	linux-can@vger.kernel.org, linux-gp
Subject: Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache
Date: Sat, 23 Dec 2017 14:45:32 +0100	[thread overview]
Message-ID: <20171223134532.GA10103@kroah.com> (raw)
In-Reply-To: <1514026979-33838-1-git-send-email-xieyisheng1@huawei.com>

On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote:
> --- a/lib/devres.c
> +++ b/lib/devres.c
> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
>  EXPORT_SYMBOL(devm_ioremap);
>  
>  /**
> - * devm_ioremap_nocache - Managed ioremap_nocache()
> - * @dev: Generic device to remap IO address for
> - * @offset: Resource address to map
> - * @size: Size of map
> - *
> - * Managed ioremap_nocache().  Map is automatically unmapped on driver
> - * detach.
> - */
> -void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
> -				   resource_size_t size)
> -{
> -	void __iomem **ptr, *addr;
> -
> -	ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
> -	if (!ptr)
> -		return NULL;
> -
> -	addr = ioremap_nocache(offset, size);

Wait, devm_ioremap() calls ioremap(), not ioremap_nocache(), are you
_SURE_ that these are all identical?  For all arches?  If so, then
ioremap_nocache() can also be removed, right?

In my quick glance, I don't think you can do this series at all :(

greg k-h
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Yisheng Xie <xieyisheng1@huawei.com>
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org,
	ulf.hansson@linaro.org, jakub.kicinski@netronome.com,
	airlied@linux.ie, linux-wireless@vger.kernel.org,
	linus.walleij@linaro.org, alsa-devel@alsa-project.org,
	dri-devel@lists.freedesktop.org,
	platform-driver-x86@vger.kernel.org, linux-ide@vger.kernel.org,
	linux-mtd@lists.infradead.org, daniel.vetter@intel.com,
	dan.j.williams@intel.com, jason@lakedaemon.net,
	linux-rtc@vger.kernel.org, boris.brezillon@free-electrons.com,
	mchehab@kernel.org, dmaengine@vger.kernel.org,
	vinod.koul@intel.com, richard@nod.at, marek.vasut@gmail.com,
	industrypack-devel@lists.sourceforge.net,
	linux-pci@vger.kernel.org, dvhart@infradead.org,
	linux@roeck-us.net, linux-media@vger.kernel.org,
	seanpaul@chromium.org, devel@driverdev.osuosl.org,
	linux-watchdog@vger.kernel.org, arnd@arndb.de,
	b.zolnierkie@samsung.com, marc.zyngier@arm.com, jslaby@suse.com,
	jani.nikula@linux.intel.com, linux-can@vger.kernel.org,
	linux-gpio@vger.kernel.org, broonie@kernel.org,
	mkl@pengutronix.de, linux-fbdev@vger.kernel.org,
	nios2-dev@lists.rocketboards.org, bhelgaas@google.com,
	tglx@linutronix.de, andriy.shevchenko@linux.intel.com,
	kvalo@codeaurora.org, a.zummo@towertech.it,
	netdev@vger.kernel.org, linux-mmc@vger.kernel.org,
	lgirdwood@gmail.com, ralf@linux-mips.org,
	linux-spi@vger.kernel.org, ysxie@foxmail.com, wg@grandegger.com,
	cyrille.pitchen@wedev4u.fr, tj@kernel.org,
	alexandre.belloni@free-electrons.com, davem@davemloft.net,
	andy@infradead.org
Subject: [v3,27/27] devres: kill devm_ioremap_nocache
Date: Sat, 23 Dec 2017 14:45:32 +0100	[thread overview]
Message-ID: <20171223134532.GA10103@kroah.com> (raw)

On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote:
> --- a/lib/devres.c
> +++ b/lib/devres.c
> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
>  EXPORT_SYMBOL(devm_ioremap);
>  
>  /**
> - * devm_ioremap_nocache - Managed ioremap_nocache()
> - * @dev: Generic device to remap IO address for
> - * @offset: Resource address to map
> - * @size: Size of map
> - *
> - * Managed ioremap_nocache().  Map is automatically unmapped on driver
> - * detach.
> - */
> -void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
> -				   resource_size_t size)
> -{
> -	void __iomem **ptr, *addr;
> -
> -	ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
> -	if (!ptr)
> -		return NULL;
> -
> -	addr = ioremap_nocache(offset, size);

Wait, devm_ioremap() calls ioremap(), not ioremap_nocache(), are you
_SURE_ that these are all identical?  For all arches?  If so, then
ioremap_nocache() can also be removed, right?

In my quick glance, I don't think you can do this series at all :(

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Yisheng Xie <xieyisheng1@huawei.com>
Cc: linux-mips@linux-mips.org, ulf.hansson@linaro.org,
	jakub.kicinski@netronome.com, lgirdwood@gmail.com,
	airlied@linux.ie, linux-pci@vger.kernel.org,
	alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org,
	platform-driver-x86@vger.kernel.org, linux-ide@vger.kernel.org,
	linux-mtd@lists.infradead.org, daniel.vetter@intel.com,
	tglx@linutronix.de, linux-watchdog@vger.kernel.org,
	linux-rtc@vger.kernel.org, boris.brezillon@free-electrons.com,
	andriy.shevchenko@linux.intel.com, vinod.koul@intel.com,
	richard@nod.at, alexandre.belloni@free-electrons.com,
	marek.vasut@gmail.com, industrypack-devel@lists.sourceforge.net,
	jslaby@suse.com, dvhart@infradead.org, linux@roeck-us.net,
	linux-media@vger.kernel.org, devel@driverdev.osuosl.org,
	jason@lakedaemon.net, arnd@arndb.de, b.zolnierkie@samsung.com,
	marc.zyngier@arm.com, linux-mmc@vger.kernel.org,
	linux-can@vger.kernel.org, linux-gp
Subject: Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache
Date: Sat, 23 Dec 2017 13:45:32 +0000	[thread overview]
Message-ID: <20171223134532.GA10103@kroah.com> (raw)
In-Reply-To: <1514026979-33838-1-git-send-email-xieyisheng1@huawei.com>

On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote:
> --- a/lib/devres.c
> +++ b/lib/devres.c
> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
>  EXPORT_SYMBOL(devm_ioremap);
>  
>  /**
> - * devm_ioremap_nocache - Managed ioremap_nocache()
> - * @dev: Generic device to remap IO address for
> - * @offset: Resource address to map
> - * @size: Size of map
> - *
> - * Managed ioremap_nocache().  Map is automatically unmapped on driver
> - * detach.
> - */
> -void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
> -				   resource_size_t size)
> -{
> -	void __iomem **ptr, *addr;
> -
> -	ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
> -	if (!ptr)
> -		return NULL;
> -
> -	addr = ioremap_nocache(offset, size);

Wait, devm_ioremap() calls ioremap(), not ioremap_nocache(), are you
_SURE_ that these are all identical?  For all arches?  If so, then
ioremap_nocache() can also be removed, right?

In my quick glance, I don't think you can do this series at all :(

greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Yisheng Xie <xieyisheng1@huawei.com>
Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org,
	ulf.hansson@linaro.org, jakub.kicinski@netronome.com,
	airlied@linux.ie, linux-wireless@vger.kernel.org,
	linus.walleij@linaro.org, alsa-devel@alsa-project.org,
	dri-devel@lists.freedesktop.org,
	platform-driver-x86@vger.kernel.org, linux-ide@vger.kernel.org,
	linux-mtd@lists.infradead.org, daniel.vetter@intel.com,
	dan.j.williams@intel.com, jason@lakedaemon.net,
	linux-rtc@vger.kernel.org, boris.brezillon@free-electrons.com,
	mchehab@kernel.org, dmaengine@vger.kernel.org,
	vinod.koul@intel.com, richard@nod.at, marek.vasut@gmail.com,
	industrypack-devel@lists.sourceforge.net,
	linux-pci@vger.kernel.org, dvhart@infradead.org,
	linux@roeck-us.net, linux-media@vger.kernel.org,
	seanpaul@chromium.org, devel@driverdev.osuosl.org,
	linux-watchdog@vger.kernel.org, arnd@arndb.de,
	b.zolnierkie@samsung.com, marc.zyngier@arm.com, jslaby@suse.com,
	jani.nikula@linux.intel.com, linux-can@vger.kernel.org,
	linux-gpio@vger.kernel.org, broonie@kernel.org,
	mkl@pengutronix.de, linux-fbdev@vger.kernel.org,
	nios2-dev@lists.rocketboards.org, bhelgaas@google.com,
	tglx@linutronix.de, andriy.shevchenko@linux.intel.com,
	kvalo@codeaurora.org, a.zummo@towertech.it,
	netdev@vger.kernel.org, linux-mmc@vger.kernel.org,
	lgirdwood@gmail.com, ralf@linux-mips.org,
	linux-spi@vger.kernel.org, ysxie@foxmail.com, wg@grandegger.com,
	cyrille.pitchen@wedev4u.fr, tj@kernel.org,
	alexandre.belloni@free-electrons.com, davem@davemloft.net,
	andy@infradead.org
Subject: Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache
Date: Sat, 23 Dec 2017 14:45:32 +0100	[thread overview]
Message-ID: <20171223134532.GA10103@kroah.com> (raw)
In-Reply-To: <1514026979-33838-1-git-send-email-xieyisheng1@huawei.com>

On Sat, Dec 23, 2017 at 07:02:59PM +0800, Yisheng Xie wrote:
> --- a/lib/devres.c
> +++ b/lib/devres.c
> @@ -44,35 +44,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
>  EXPORT_SYMBOL(devm_ioremap);
>  
>  /**
> - * devm_ioremap_nocache - Managed ioremap_nocache()
> - * @dev: Generic device to remap IO address for
> - * @offset: Resource address to map
> - * @size: Size of map
> - *
> - * Managed ioremap_nocache().  Map is automatically unmapped on driver
> - * detach.
> - */
> -void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
> -				   resource_size_t size)
> -{
> -	void __iomem **ptr, *addr;
> -
> -	ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
> -	if (!ptr)
> -		return NULL;
> -
> -	addr = ioremap_nocache(offset, size);

Wait, devm_ioremap() calls ioremap(), not ioremap_nocache(), are you
_SURE_ that these are all identical?  For all arches?  If so, then
ioremap_nocache() can also be removed, right?

In my quick glance, I don't think you can do this series at all :(

greg k-h

  reply	other threads:[~2017-12-23 13:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-23 11:02 [PATCH v3 27/27] devres: kill devm_ioremap_nocache Yisheng Xie
2017-12-23 11:02 ` Yisheng Xie
2017-12-23 11:02 ` Yisheng Xie
2017-12-23 11:02 ` Yisheng Xie
2017-12-23 11:02 ` Yisheng Xie
2017-12-23 11:02 ` [v3,27/27] " Xie Yisheng
2017-12-23 13:45 ` Greg KH [this message]
2017-12-23 13:45   ` [PATCH v3 27/27] " Greg KH
2017-12-23 13:45   ` Greg KH
2017-12-23 13:45   ` [v3,27/27] " Greg Kroah-Hartman
2017-12-25  1:43   ` [PATCH v3 27/27] " Yisheng Xie
2017-12-25  1:43     ` Yisheng Xie
2017-12-25  1:43     ` Yisheng Xie
2017-12-25  1:43     ` Yisheng Xie
2017-12-25  1:43     ` [v3,27/27] " Xie Yisheng

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=20171223134532.GA10103@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=airlied@linux.ie \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=b.zolnierkie@samsung.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=daniel.vetter@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=dvhart@infradead.org \
    --cc=industrypack-devel@lists.sourceforge.net \
    --cc=jakub.kicinski@netronome.com \
    --cc=jason@lakedaemon.net \
    --cc=jslaby@suse.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-can@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=marc.zyngier@arm.com \
    --cc=marek.vasut@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=richard@nod.at \
    --cc=tglx@linutronix.de \
    --cc=ulf.hansson@linaro.org \
    --cc=vinod.koul@intel.com \
    --cc=xieyisheng1@huawei.com \
    /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.