Skip to content

Commit 383bf44

Browse files
mirabJiri Kosina
authored andcommitted
livepatch: change the error message in asm/livepatch.h header files
If anyone includes asm/livepatch.h when CONFIG_LIVEPATCH=n the build fails with the existing error message. Change it to something saner. [jkosina@suse.cz: fixed changelog typo spotted by Josh] Suggested-by: Andrew Morton <akpm@linux-foundation.org> 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 0f0836b commit 383bf44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/s390/include/asm/livepatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
3737
regs->psw.addr = ip;
3838
}
3939
#else
40-
#error Live patching support is disabled; check CONFIG_LIVEPATCH
40+
#error Include linux/livepatch.h, not asm/livepatch.h
4141
#endif
4242

4343
#endif

arch/x86/include/asm/livepatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
4141
regs->ip = ip;
4242
}
4343
#else
44-
#error Live patching support is disabled; check CONFIG_LIVEPATCH
44+
#error Include linux/livepatch.h, not asm/livepatch.h
4545
#endif
4646

4747
#endif /* _ASM_X86_LIVEPATCH_H */

0 commit comments

Comments
 (0)