From 25fb0b34bfba0094608e9329d668ea873bc5eea2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 24 Jun 2021 03:39:54 +0000 Subject: [PATCH] scripts/kernel-functions: Unbreak the build against kernel versions 2.6.34[2..7] (trunk r9305) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.5.x@9449 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/kernel-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kernel-functions b/scripts/kernel-functions index c50668a76..e34e43bcf 100644 --- a/scripts/kernel-functions +++ b/scripts/kernel-functions @@ -142,7 +142,7 @@ function patch_kernel { # versions do not support recent gcc versions. See also commit # 9c695203a7dd ("compiler-gcc.h: gcc-4.5 needs noclone and # noinline on __naked functions") # v2.6.35. - if kernel_version_le 2.6.35 "$1"; then + if kernel_version_le 2.6.34.2 "$1"; then patch -f -s -p1 <<'EOF' diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 02ae99e8e6d3..47e12c19c965 100644