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
  • linux
  • include
  • linux
  • console.h
Find file BlameHistoryPermalink
  • Tony Lindgren's avatar
    printk: Constify name for add_preferred_console() · 1e3c8526
    Tony Lindgren authored Oct 12, 2023
    
    
    While adding a preferred console handling for serial_core for serial port
    hardware based device addressing, Jiri suggested we constify name for
    add_preferred_console(). The name gets copied anyways. This allows serial
    core to add a preferred console using serial drv->dev_name without copying
    it.
    
    Note that constifying options causes changes all over the place because of
    struct console for match().
    
    Suggested-by: default avatarJiri Slaby <jirislaby@kernel.org>
    Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    Link: https://lore.kernel.org/r/20231012064300.50221-2-tony@atomide.com
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    1e3c8526
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7