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
  • tools
  • testing
  • selftests
  • bpf
  • test_cpp.cpp
Find file BlameHistoryPermalink
  • Andrii Nakryiko's avatar
    bpftool: Make skeleton C code compilable with C++ compiler · 7c8dce4b
    Andrii Nakryiko authored Dec 26, 2019
    
    
    When auto-generated BPF skeleton C code is included from C++ application, it
    triggers compilation error due to void * being implicitly casted to whatever
    target pointer type. This is supported by C, but not C++. To solve this
    problem, add explicit casts, where necessary.
    
    To ensure issues like this are captured going forward, add skeleton usage in
    test_cpp test.
    
    Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Link: https://lore.kernel.org/bpf/20191226210253.3132060-1-andriin@fb.com
    7c8dce4b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7