diff --git a/Makefile b/Makefile index 173a7c9bd1fb130e80bf85943e6601b6adadf860..668909e7a460096f6b85a2ff4616997776f11efa 100644 --- a/Makefile +++ b/Makefile @@ -901,6 +901,9 @@ else CC_FLAGS_LTO += -flto endif CC_FLAGS_LTO += -fvisibility=hidden + +# Limit inlining across translation units to reduce binary size +KBUILD_LDFLAGS += -mllvm -import-instr-limit=5 endif ifdef CONFIG_LTO