linux-fbdev.vger.kernel.org archive mirror
 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 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

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

Thread overview: 3+ 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 13:45 ` Greg KH [this message]
2017-12-25  1:43   ` Yisheng Xie

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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).