From 2a50de2e4e891567e4edf9eceb5c1e82b7ff0d0e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 18 Dec 2012 08:22:05 +0000 Subject: [PATCH] iscsi-scst: Build fix for kernels 3.6.1..3.6.10 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4646 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/kernel/event.c b/iscsi-scst/kernel/event.c index c192f3b42..6c86fb30b 100644 --- a/iscsi-scst/kernel/event.c +++ b/iscsi-scst/kernel/event.c @@ -32,7 +32,7 @@ static int event_recv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) { u32 pid; -#if (LINUX_VERSION_CODE <= KERNEL_VERSION(3, 6, 0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)) pid = NETLINK_CB(skb).pid; #else pid = NETLINK_CB(skb).portid; @@ -192,7 +192,7 @@ int __init event_init(void) .input = event_recv_skb, .groups = 1, }; -#if (LINUX_VERSION_CODE <= KERNEL_VERSION(3, 6, 0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)) nl = netlink_kernel_create(&init_net, NETLINK_ISCSI_SCST, THIS_MODULE, &cfg); #else