From 9fd28d336ab217937ddbbed4881250e170ae2ed6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 15 Mar 2014 06:47:26 +0000 Subject: [PATCH] scripts/kernel-functions: Kernel 3.13.6 build fix git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5337 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/kernel-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/kernel-functions b/scripts/kernel-functions index 0bc0584a9..58751563f 100644 --- a/scripts/kernel-functions +++ b/scripts/kernel-functions @@ -175,7 +175,8 @@ Get rid of sparse errors on sk_buff.protocol. EOF fi if [ "${1#3.13}" != "$1" ]; then - patch -f -s -p1 <<'EOF' + if [ "$1" = "3.13" ] || [ "${1#3.13.}" -lt 6 ]; then + patch -f -s -p1 <<'EOF' From 7b4ec8dd7d4ac467e9eee4d49f2c9574d773efbb Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Thu, 16 Jan 2014 10:18:48 +1030 @@ -212,6 +213,7 @@ index 3f2793d..96e45ea 100644 __used \ __attribute__((section("___ksymtab" sec "+" #sym), unused)) \ EOF + fi fi ) rmdir "${tmpdir}"