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
  • kernel
  • cpu.c
Find file BlameHistoryPermalink
  • Arnd Bergmann's avatar
    cpu/SMT: Fix x86 link error without CONFIG_SYSFS · dc8d37ed
    Arnd Bergmann authored Dec 10, 2019
    When CONFIG_SYSFS is disabled, but CONFIG_HOTPLUG_SMT is enabled,
    the kernel fails to link:
    
    arch/x86/power/cpu.o: In function `hibernate_resume_nonboot_cpu_disable':
    (.text+0x38d): undefined reference to `cpuhp_smt_enable'
    arch/x86/power/hibernate.o: In function `arch_resume_nosmt':
    hibernate.c:(.text+0x291): undefined reference to `cpuhp_smt_enable'
    hibernate.c:(.text+0x29c): undefined reference to `cpuhp_smt_disable'
    
    Move the exported functions out of the #ifdef section into its
    own with the correct conditions.
    
    The patch that caused this is marked for stable backports, so
    this one may need to be backported as well.
    
    Fixes: ec527c31
    
     ("x86/power: Fix 'nosmt' vs hibernation triple fault during resume")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Reviewed-by: default avatarJiri Kosina <jkosina@suse.cz>
    Cc: stable@vger.kernel.org
    Link: https://lore.kernel.org/r/20191210195614.786555-1-arnd@arndb.de
    dc8d37ed
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7