jjb: Refine range of patching for duplicate decls of __force_order
authorKienan Stewart <kstewart@efficios.com>
Tue, 29 Aug 2023 14:29:04 +0000 (10:29 -0400)
committerKienan Stewart <kstewart@efficios.com>
Tue, 29 Aug 2023 14:30:08 +0000 (10:30 -0400)
Change-Id: I854ab00149c615aaf4d6544281119bc6c8e60aaf

scripts/lttng-modules/param-build.sh

index e79dc65189e4edf55499dcd7c72c500ab4793a04..fd13877184758d43f835bc0fc8c21c678ec72c7f 100644 (file)
@@ -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
This page took 0.023935 seconds and 4 git commands to generate.