Skip to content

Commit b24b78a

Browse files
mirabJiri Kosina
authored andcommitted
klp: remove superfluous errors in asm/livepatch.h
There is an #error in asm/livepatch.h for both x86 and s390 in !CONFIG_LIVEPATCH cases. It does not make much sense as pointed out by Michael Ellerman. One can happily include asm/livepatch.h with CONFIG_LIVEPATCH. Remove it as useless. Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 705d43d commit b24b78a

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

‎arch/s390/include/asm/livepatch.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
3636
{
3737
regs->psw.addr = ip;
3838
}
39-
#else
40-
#error Include linux/livepatch.h, not asm/livepatch.h
4139
#endif
4240

4341
#endif

‎arch/x86/include/asm/livepatch.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
4040
{
4141
regs->ip = ip;
4242
}
43-
#else
44-
#error Include linux/livepatch.h, not asm/livepatch.h
4543
#endif
4644

4745
#endif /* _ASM_X86_LIVEPATCH_H */

0 commit comments

Comments
 (0)