mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user