diff --git a/Makefile b/Makefile index 60a4732476576b04bdaca1ffa2e5ce4b422944f8..f8d8000f830c45f2fcb99b91b4bd6f12a4e6a548 100644 --- a/Makefile +++ b/Makefile @@ -796,6 +796,10 @@ KBUILD_CFLAGS_KERNEL += -ffunction-sections -fdata-sections LDFLAGS_vmlinux += --gc-sections endif +ifdef CONFIG_LIVEPATCH +KBUILD_CFLAGS += $(call cc-option, -flive-patching=inline-clone) +endif + # arch Makefile may override CC so keep this after arch Makefile is included NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)