]> git.openfabrics.org - ~emulex/compat-rdma.git/commitdiff
gen-compat-config: Handle kthread API to support RHEL6.6
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 29 Sep 2014 11:58:42 +0000 (14:58 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 29 Sep 2014 11:58:42 +0000 (14:58 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
ofed_scripts/gen-compat-config.sh

index 1d7788121fb7d330cdd37bed80536ec87c597545..7af0fd35f0b3e0b37b44b9abe7f3197e64c90948 100755 (executable)
@@ -275,3 +275,7 @@ fi
 if (grep -wq "ETH_FLAG_TXVLAN" ${KLIB_BUILD}/include/linux/ethtool.h > /dev/null 2>&1 || grep -wq "ETH_FLAG_TXVLAN" /lib/modules/${KVERSION}/source/include/linux/ethtool.h > /dev/null 2>&1); then
     set_config CONFIG_COMPAT_IS_ETH_FLAG_TXVLAN y
 fi
+
+if (grep -wq "^struct kthread_work;" ${KLIB_BUILD}/include/linux/kthread.h > /dev/null 2>&1 || grep -wq "^struct kthread_work;" /lib/modules/${KVERSION}/source/include/linux/kthread.h > /dev/null 2>&1); then
+    set_config CONFIG_COMPAT_IS_KTHREAD y
+fi