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
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Miguel Ojeda's avatar
    scripts: checkpatch: diagnose uses of `%pA` in the C side as errors · de48fa1a
    Miguel Ojeda authored May 22, 2022
    
    
    The `%pA` format specifier is only intended to be used from Rust.
    
    `checkpatch.pl` already gives a warning for invalid specificers:
    
        WARNING: Invalid vsprintf pointer extension '%pA'
    
    This makes it an error and introduces an explanatory message:
    
        ERROR: Invalid vsprintf pointer extension '%pA' - '%pA' is only intended to be used from Rust code
    
    Suggested-by: default avatarKees Cook <keescook@chromium.org>
    Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Co-developed-by: default avatarAlex Gaynor <alex.gaynor@gmail.com>
    Signed-off-by: default avatarAlex Gaynor <alex.gaynor@gmail.com>
    Co-developed-by: default avatarWedson Almeida Filho <wedsonaf@google.com>
    Signed-off-by: default avatarWedson Almeida Filho <wedsonaf@google.com>
    Co-developed-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    de48fa1a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7