summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2019-05-06 15:55:18 +0200
committerJiri Kosina <jkosina@suse.cz>2019-05-06 15:55:18 +0200
commit1efbd99ed41db9ddc3ae7e189934c62e9dbe55c4 (patch)
tree106dd68e510b226394b4c1727cb6002b2a0d3c38 /Makefile
parent802c2471607919f57d7d1f83f0fddd925309e97c (diff)
parentf68d67cf2f83dc82675969724b59ca7c6da43fa9 (diff)
Merge branches 'for-5.1/upstream-fixes' and 'for-5.2/core' into for-linus
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 60a473247657..f8d8000f830c 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)