Thread (10 messages) 10 messages, 4 authors, 2018-01-12

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2017-12-23 13:48:40
Also in: alsa-devel, dri-devel, linux-can, linux-gpio, linux-ide, linux-media, linux-mips, linux-mmc, linux-pci, linux-rtc, linux-spi, linux-watchdog, linux-wireless, lkml, netdev, platform-driver-x86

On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote:
Hi all,

When I tried to use devm_ioremap function and review related code, I found
devm_ioremap and devm_ioremap_nocache is almost the same with each other,
except one use ioremap while the other use ioremap_nocache.
For all arches?  Really?  Look at MIPS, and x86, they have different
functions.
While ioremap's
default function is ioremap_nocache, so devm_ioremap_nocache also have the
same function with devm_ioremap, which can just be killed to reduce the size
of devres.o(from 20304 bytes to 18992 bytes in my compile environment).

I have posted two versions, which use macro instead of function for
devm_ioremap_nocache[1] or devm_ioremap[2]. And Greg suggest me to kill
devm_ioremap_nocache for no need to keep a macro around for the duplicate
thing. So here comes v3 and please help to review.
I don't think this can be done, what am I missing?  These functions are
not identical, sorry for missing that before.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help