1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2c207aee4SJosh Poimboeuf 39b7b89efSJoseph Cihula# __restore_processor_state() restores %gs after S3 resume and so should not 49b7b89efSJoseph Cihula# itself be stack-protected 5893ab004SMasahiro YamadaCFLAGS_cpu.o := -fno-stack-protector 69b7b89efSJoseph Cihula 7d2dcd3e3SSami Tolvanen# Clang may incorrectly inline functions with stack protector enabled into 8*2947a456SNathan Chancellor# __restore_processor_state(): https://llvm.org/pr47479 9d2dcd3e3SSami TolvanenCFLAGS_REMOVE_cpu.o := $(CC_FLAGS_LTO) 10d2dcd3e3SSami Tolvanen 1108687aecSSergio Luisobj-$(CONFIG_PM_SLEEP) += cpu.o 1225862a04SZhimin Guobj-$(CONFIG_HIBERNATION) += hibernate_$(BITS).o hibernate_asm_$(BITS).o hibernate.o 13