diff --git a/arch/x86/kernel/cpu/sgx/Makefile
b/arch/x86/kernel/cpu/sgx/Makefile
index 9c1656779b2a..400baa7cfb69 100644
--- a/arch/x86/kernel/cpu/sgx/Makefile
+++ b/arch/x86/kernel/cpu/sgx/Makefile
@@ -1,6 +1,7 @@
obj-y += \
driver.o \
encl.o \
+ epc_cgroup.o \
It should be: +obj-$(CONFIG_CGROUP_MISC) += epc_cgroup.o Haitao

