diff options
author | Yisheng Xie <[email protected]> | 2018-01-29 19:48:16 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-03-15 18:08:55 +0100 |
commit | 1b723413aada7383a4b24ded93ed26eee1b3a3ca (patch) | |
tree | 924e694e844253889ad136d1e738f91c67bb94ad /scripts/gdb/linux/dmesg.py | |
parent | f87deada80fe483e2286e29cd866dc66ddc2b6bc (diff) |
devres: combine function devm_ioremap*
When I tried to use devm_ioremap function and review related
code, I found devm_ioremap_* almost have the similar realize
with each other, which can be combined.
In the former version, I have tried to kill ioremap_cache to
reduce the size of devres, which can not work for ioremap is
not the same as ioremap_nocache in some ARCHs likes ia64.
Therefore, as the suggestion of Christophe, I introduce a help
function __devm_ioremap, let devm_ioremap* inline and call
__devm_ioremap with different devm_ioremap_type.
After apply the patch, the size of devres.o can be reduce from
8216 Bytes to 8052 Bytes in my compile environment.
Suggested-by: Greg KH <[email protected]>
Suggested-by: Christophe LEROY <[email protected]>
Signed-off-by: Yisheng Xie <[email protected]>
Reviewed-by: Christophe LEROY <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions