klp: remove CONFIG_LIVEPATCH dependency from klp headers
[sfrench/cifs-2.6.git] / arch / x86 / include / asm / livepatch.h
index 8acfe798625be7316d82c46488b585493170c128..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,6 +39,5 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
 {
        regs->ip = ip;
 }
-#endif
 
 #endif /* _ASM_X86_LIVEPATCH_H */