Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v3 27/27] devres: kill devm_ioremap_nocache
- From: Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 Dec 2017 14:45:32 +0100
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, ulf.hansson@xxxxxxxxxx, jakub.kicinski@xxxxxxxxxxxxx, airlied@xxxxxxxx, linux-wireless@xxxxxxxxxxxxxxx, linus.walleij@xxxxxxxxxx, alsa-devel@xxxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, platform-driver-x86@xxxxxxxxxxxxxxx, linux-ide@xxxxxxxxxxxxxxx, linux-mtd@xxxxxxxxxxxxxxxxxxx, daniel.vetter@xxxxxxxxx, dan.j.williams@xxxxxxxxx, jason@xxxxxxxxxxxxxx, linux-rtc@xxxxxxxxxxxxxxx, boris.brezillon@xxxxxxxxxxxxxxxxxx, mchehab@xxxxxxxxxx, dmaengine@xxxxxxxxxxxxxxx, vinod.koul@xxxxxxxxx, richard@xxxxxx, marek.vasut@xxxxxxxxx, industrypack-devel@xxxxxxxxxxxxxxxxxxxxx, linux-pci@xxxxxxxxxxxxxxx, dvhart@xxxxxxxxxxxxx, linux@xxxxxxxxxxxx, linux-media@xxxxxxxxxxxxxxx, seanpaul@xxxxxxxxxxxx, devel@xxxxxxxxxxxxxxxxxxxx, linux-watchdog@xxxxxxxxxxxxxxx, arnd@xxxxxxxx, b.zolnierkie@xxxxxxxxxxx, marc.zyngier@xxxxxxx, jslaby@xxxxxxxx, jani.nikula@xxxxxxxxxxxxxxx, linux-can@xxxxxxxxxxxxxxx, linux-gpio@xxxxxxxxxxxxxxx, broonie@xxxxxxxxxx, mkl@xxxxxxxxxxxxxx, linux-fbdev@xxxxxxxxxxxxxxx, nios2-dev@xxxxxxxxxxxxxxxxxxxxxx, bhelgaas@xxxxxxxxxx, tglx@xxxxxxxxxxxxx, andriy.shevchenko@xxxxxxxxxxxxxxx, kvalo@xxxxxxxxxxxxxx, a.zummo@xxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, linux-mmc@xxxxxxxxxxxxxxx, lgirdwood@xxxxxxxxx, ralf@xxxxxxxxxxxxxx, linux-spi@xxxxxxxxxxxxxxx, ysxie@xxxxxxxxxxx, wg@xxxxxxxxxxxxxx, cyrille.pitchen@xxxxxxxxxx, tj@xxxxxxxxxx, alexandre.belloni@xxxxxxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, andy@xxxxxxxxxxxxx
- In-reply-to: <1514026979-33838-1-git-send-email-xieyisheng1@huawei.com>
- References: <1514026979-33838-1-git-send-email-xieyisheng1@huawei.com>
- User-agent: Mutt/1.9.2 (2017-12-15)
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 linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[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]
|