From b8cfe827bea777623bd8acc5c423aa0d1243b804 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 14 May 2017 00:42:24 +0000 Subject: [PATCH 1/2] scst/include/backport.h: Remove duplicate definition of kthread_create_on_node() This patch reverts most of r7168. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7175 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index 8cb0198cb..816da4c41 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -648,15 +648,6 @@ struct t10_pi_tuple { }; #endif -/* */ - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) -#ifndef kthread_create -#define kthread_create_on_node(threadfn, data, node, namefmt, arg...) \ - kthread_create((threadfn), (data), (namefmt), ##arg) -#endif -#endif - /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) From 3622c0d5cb6df86b7f483b1bd3904e78e412e095 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 14 May 2017 00:55:39 +0000 Subject: [PATCH 2/2] scst/include/backport.h: Add a comment git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7176 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 816da4c41..638e57e35 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -296,6 +296,10 @@ static inline void hex2bin(u8 *dst, const char *src, size_t count) } #endif +/* + * See also commit 33ee3b2e2eb9. That commit was introduced in kernel v2.6.39 + * and later backported to kernel v2.6.38.4. + */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \ LINUX_VERSION_CODE != KERNEL_VERSION(2, 6, 38) && \ (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6)