Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • lib
  • devres.c
Find file BlameHistoryPermalink
  • Yisheng Xie's avatar
    devres: combine function devm_ioremap* · 1b723413
    Yisheng Xie authored Jan 29, 2018
    
    
    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: default avatarGreg KH <gregkh@linuxfoundation.org>
    Suggested-by: default avatarChristophe LEROY <christophe.leroy@c-s.fr>
    Signed-off-by: default avatarYisheng Xie <xieyisheng1@huawei.com>
    Reviewed-by: default avatarChristophe LEROY <christophe.leroy@c-s.fr>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    1b723413
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7