Skip to contentSkip to conversation

iscsi_tcp: make iscsi compile again after recent netlink changes

PATCH In review James Bottomley 2 participants 2 messages Sep 8, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iscsi_tcp: make iscsi compile again after recent netlink changes

netlink_kernel_create now has two new arguments; the module (which is easy) and the number of groups, which I arbitrarily set to one.

James

drivers/scsi/scsi_transport_iscsi.c +2 -1
@@ -1230,7 +1230,8 @@ static __init int iscsi_transport_init(v
 	if (err)
 		goto unregister_session_class;
 
-	nls = netlink_kernel_create(NETLINK_ISCSI, iscsi_if_rx);
+	nls = netlink_kernel_create(NETLINK_ISCSI, 1, iscsi_if_rx,
+				    THIS_MODULE);
 	if (!nls) {
 		err = -ENOBUFS;
 		goto unregister_notifier;
#1 lore raw
Quoted 3 lines · James Bottomley

netlink_kernel_create now has two new arguments; the module (which is easy) and the number of groups, which I arbitrarily set to one.

Thanks. Are you going to apply this to scsi-misc? We are building a patchset for fixes to send this weekend hopefully so we can take the patch and incorporate it or patch over the updated scsi-misc.

Quoted 21 lines

James

drivers/scsi/scsi_transport_iscsi.c +2 -2
@@ -1230,7 +1230,8 @@ static __init int iscsi_transport_init(v
 	if (err)
 		goto unregister_session_class;
 
-	nls = netlink_kernel_create(NETLINK_ISCSI, iscsi_if_rx);
+	nls = netlink_kernel_create(NETLINK_ISCSI, 1, iscsi_if_rx,
+				    THIS_MODULE);
 	if (!nls) {
 		err = -ENOBUFS;
 		goto unregister_notifier;
 
 
-

To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html