From: Kienan Stewart Date: Tue, 29 Aug 2023 14:29:04 +0000 (-0400) Subject: jjb: Refine range of patching for duplicate decls of __force_order X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=ad23f63b8f220bce0eda8769ca18d84fd6c57530;p=lttng-ci.git jjb: Refine range of patching for duplicate decls of __force_order Change-Id: I854ab00149c615aaf4d6544281119bc6c8e60aaf --- diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index e79dc65..fd13877 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -346,8 +346,12 @@ build_linux_kernel() { patch_linux_kernel 854e55ad289ef8888e7991f0ada85d5846f5afb9 fi + fi + + if { vergt "${selected_cc_version}" "9"; } && { verlt "${kversion}" "5.6"; } ; then # Duplicate decalarations of __force_order # @see https://gitlab.com/linux-kernel/stable/-/commit/df6d4f9db79c1a5d6f48b59db35ccd1e9ff9adfc + patch_linux_kernel df6d4f9db79c1a5d6f48b59db35ccd1e9ff9adfc # However, kaslr_64.c doesn't exit in 4.15, 4.16, it's named pagetable.c if [ -f arch/x86/boot/compressed/pagetable.c ] ; then sed -i '/^unsigned long __force_order;$/d' arch/x86/boot/compressed/pagetable.c