Skip to content

Commit 12cf89b

Browse files
jpoimboeJiri Kosina
authored andcommitted
livepatch: rename config to CONFIG_LIVEPATCH
Rename CONFIG_LIVE_PATCHING to CONFIG_LIVEPATCH to make the naming of the config and the code more consistent. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent dbed7dd commit 12cf89b

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ config X86_64
1717
depends on 64BIT
1818
select X86_DEV_DMA_OPS
1919
select ARCH_USE_CMPXCHG_LOCKREF
20-
select HAVE_LIVE_PATCHING
20+
select HAVE_LIVEPATCH
2121

2222
### Arch settings
2323
config X86

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <linux/module.h>
2525
#include <linux/ftrace.h>
2626

27-
#ifdef CONFIG_LIVE_PATCHING
27+
#ifdef CONFIG_LIVEPATCH
2828
static inline int klp_check_compiler_support(void)
2929
{
3030
#ifndef CC_USING_FENTRY
@@ -40,7 +40,7 @@ static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip)
4040
regs->ip = ip;
4141
}
4242
#else
43-
#error Live patching support is disabled; check CONFIG_LIVE_PATCHING
43+
#error Live patching support is disabled; check CONFIG_LIVEPATCH
4444
#endif
4545

4646
#endif /* _ASM_X86_LIVEPATCH_H */

‎arch/x86/kernel/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ obj-$(CONFIG_X86_MPPARSE) += mpparse.o
6363
obj-y += apic/
6464
obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o
6565
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
66-
obj-$(CONFIG_LIVE_PATCHING) += livepatch.o
66+
obj-$(CONFIG_LIVEPATCH) += livepatch.o
6767
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
6868
obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
6969
obj-$(CONFIG_X86_TSC) += trace_clock.o

‎include/linux/livepatch.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <linux/module.h>
2525
#include <linux/ftrace.h>
2626

27-
#if IS_ENABLED(CONFIG_LIVE_PATCHING)
27+
#if IS_ENABLED(CONFIG_LIVEPATCH)
2828

2929
#include <asm/livepatch.h>
3030

@@ -128,6 +128,6 @@ extern int klp_unregister_patch(struct klp_patch *);
128128
extern int klp_enable_patch(struct klp_patch *);
129129
extern int klp_disable_patch(struct klp_patch *);
130130

131-
#endif /* CONFIG_LIVE_PATCHING */
131+
#endif /* CONFIG_LIVEPATCH */
132132

133133
#endif /* _LINUX_LIVEPATCH_H_ */

‎kernel/livepatch/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
config HAVE_LIVE_PATCHING
1+
config HAVE_LIVEPATCH
22
bool
33
help
44
Arch supports kernel live patching
55

6-
config LIVE_PATCHING
6+
config LIVEPATCH
77
bool "Kernel Live Patching"
88
depends on DYNAMIC_FTRACE_WITH_REGS
99
depends on MODULES
1010
depends on SYSFS
1111
depends on KALLSYMS_ALL
12-
depends on HAVE_LIVE_PATCHING
12+
depends on HAVE_LIVEPATCH
1313
help
1414
Say Y here if you want to support kernel live patching.
1515
This option has no runtime impact until a kernel "patch"

‎kernel/livepatch/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
obj-$(CONFIG_LIVE_PATCHING) += livepatch.o
1+
obj-$(CONFIG_LIVEPATCH) += livepatch.o
22

33
livepatch-objs := core.o

‎samples/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ config SAMPLE_RPMSG_CLIENT
6363
to communicate with an AMP-configured remote processor over
6464
the rpmsg bus.
6565

66-
config SAMPLE_LIVE_PATCHING
66+
config SAMPLE_LIVEPATCH
6767
tristate "Build live patching sample -- loadable modules only"
68-
depends on LIVE_PATCHING && m
68+
depends on LIVEPATCH && m
6969
help
7070
Builds a sample live patch that replaces the procfs handler
7171
for /proc/cmdline to print "this has been live patched".

‎samples/livepatch/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
obj-$(CONFIG_SAMPLE_LIVE_PATCHING) += livepatch-sample.o
1+
obj-$(CONFIG_SAMPLE_LIVEPATCH) += livepatch-sample.o

0 commit comments

Comments
 (0)