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
  • clocksource
  • hyperv_timer.h
Find file BlameHistoryPermalink
  • Thomas Gleixner's avatar
    clocksource/drivers/hyper-v: Include asm/hyperv-tlfs.h not asm/mshyperv.h · e5dfd093
    Thomas Gleixner authored Nov 13, 2022
    
    
    clocksource/hyperv_timer.h is included into the VDSO build. It includes
    asm/mshyperv.h which in turn includes the world and some more. This worked
    so far by chance, but any subtle change in the include chain results in a
    build breakage because VDSO builds are building user space libraries.
    
    Include asm/hyperv-tlfs.h instead which contains everything what the VDSO
    build needs except the hv_get_raw_timer() define. Move this define into a
    separate header file, which contains the prerequisites (msr.h) and is
    included by clocksource/hyperv_timer.h.
    
    Fixup drivers/hv/vmbus_drv.c which relies on the indirect include of
    asm/mshyperv.h.
    
    With that the VDSO build only pulls in the minimum requirements.
    
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
    Link: https://lore.kernel.org/r/87fsemtut0.ffs@tglx
    e5dfd093
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7