From 22c950246a6423df1de5530b938446f97076a916 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 20 Mar 2013 07:01:59 +0000 Subject: [PATCH] scripts/generate-kernel-patch: Use the proper version of the put_page_callback patch for kernel 3.7.10 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4807 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 431afb15c..28d2bd596 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -262,7 +262,9 @@ done scsi_exec_req_fifo_defined=0 scst_io_context=0 for p in scst/kernel/*-${kver}.patch \ - iscsi-scst/kernel/patches/*-${kver}.patch + $(if [ ${kver} = 3.7 ] && [ "$1" = "3.7.10" -o "$1" ">" "3.7.10" ]; + then echo iscsi-scst/kernel/patches/*-3.7.10.patch; + else echo iscsi-scst/kernel/patches/*-${kver}.patch; fi) do # Exclude the put_page_callback patch when command-line option -u has been # specified since the current approach is not considered acceptable for