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
This commit is contained in:
Bart Van Assche
2012-12-18 08:22:05 +00:00
parent 299c407697
commit 2a50de2e4e

View File

@@ -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