klp: remove CONFIG_LIVEPATCH dependency from klp headers
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / livepatch.h
index 19c099afa8613ead6565917f5787deb3df12c9e7..7e68f95585523bdc315883b023bdae4a0deeb017 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/module.h>
 #include <linux/ftrace.h>
 
-#ifdef CONFIG_LIVEPATCH
 static inline int klp_check_compiler_support(void)
 {
 #ifndef CC_USING_FENTRY
@@ -40,8 +39,5 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
 {
        regs->ip = ip;
 }
-#else
-#error Live patching support is disabled; check CONFIG_LIVEPATCH
-#endif
 
 #endif /* _ASM_X86_LIVEPATCH_H */