Skip to content

Commit 882ddcd

Browse files
committed
Merge tag 'kbuild-fixes-v6.10-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Make scripts/ld-version.sh robust against the latest LLD - Fix warnings in rpm-pkg with device tree support - Fix warnings in fortify tests with KASAN * tag 'kbuild-fixes-v6.10-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: fortify: fix warnings in fortify tests with KASAN kbuild: rpm-pkg: avoid the warnings with dtb's listed twice kbuild: Make ld-version.sh more robust against version string changes
2 parents 3653469 + 84679f0 commit 882ddcd

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

lib/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,3 +426,7 @@ $(obj)/$(TEST_FORTIFY_LOG): $(addprefix $(obj)/, $(TEST_FORTIFY_LOGS)) FORCE
426426
ifeq ($(CONFIG_FORTIFY_SOURCE),y)
427427
$(obj)/string.o: $(obj)/$(TEST_FORTIFY_LOG)
428428
endif
429+
430+
# Some architectures define __NO_FORTIFY if __SANITIZE_ADDRESS__ is undefined.
431+
# Pass CFLAGS_KASAN to avoid warnings.
432+
$(foreach x, $(patsubst %.log,%.o,$(TEST_FORTIFY_LOGS)), $(eval KASAN_SANITIZE_$(x) := y))

scripts/ld-version.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ else
5757
fi
5858
fi
5959

60-
# Some distributions append a package release number, as in 2.34-4.fc32
61-
# Trim the hyphen and any characters that follow.
62-
version=${version%-*}
60+
# There may be something after the version, such as a distribution's package
61+
# release number (like Fedora's "2.34-4.fc32") or punctuation (like LLD briefly
62+
# added before the "compatible with GNU linkers" string), so remove everything
63+
# after just numbers and periods.
64+
version=${version%%[!0-9.]*}
6365

6466
cversion=$(get_canonical_version $version)
6567
min_cversion=$(get_canonical_version $min_version)

scripts/package/kernel.spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ ln -fns /usr/src/kernels/%{KERNELRELEASE} %{buildroot}/lib/modules/%{KERNELRELEA
8383
done
8484

8585
if [ -d "%{buildroot}/lib/modules/%{KERNELRELEASE}/dtb" ];then
86-
echo "/lib/modules/%{KERNELRELEASE}/dtb"
8786
find "%{buildroot}/lib/modules/%{KERNELRELEASE}/dtb" -printf "%%%ghost /boot/dtb-%{KERNELRELEASE}/%%P\n"
8887
fi
8988

0 commit comments

Comments
 (0)