]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kbuild: remove append operation on cmd_ld_ko_o
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 8 Sep 2024 13:26:00 +0000 (15:26 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 20 Sep 2024 00:21:53 +0000 (09:21 +0900)
The append operation was introduced in
commit b1a1a1a09b46 ("kbuild: lto: postpone objtool")
when the command was created from two parts.
In commit 850ded46c642 ("kbuild: Fix TRIM_UNUSED_KSYMS with LTO_CLANG")
however the first part was removed again, making the append operation
unnecessary.

To keep this command definition aligned with all other command
definitions, remove the append again.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.modfinal

index 6b1b72257b29cf0411d14cac81f1ab4694d75a7e..1482884ec3ca820c0a1dbd4d25c5463985561a49 100644 (file)
@@ -34,7 +34,7 @@ $(extmod_prefix).module-common.o: $(srctree)/scripts/module-common.c FORCE
        $(call if_changed_dep,cc_o_c)
 
 quiet_cmd_ld_ko_o = LD [M]  $@
-      cmd_ld_ko_o +=                                                   \
+      cmd_ld_ko_o                                                    \
        $(LD) -r $(KBUILD_LDFLAGS)                                      \
                $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE)              \
                -T scripts/module.lds -o $@ $(filter %.o, $^)