[openib-general] [PATCH] fix warning in mad.c

Roland Dreier roland at topspin.com
Mon Nov 15 20:18:38 PST 2004


flags for spin lock should be unsigned long, not int.

 - R.

Index: infiniband/core/mad.c
===================================================================
--- infiniband/core/mad.c	(revision 1239)
+++ infiniband/core/mad.c	(working copy)
@@ -1353,7 +1353,7 @@
 {
 	struct ib_mad_send_wr_private *mad_send_wr;
 	struct ib_mad_list_head *mad_list;
-	int flags;
+	unsigned long flags;
 
 	spin_lock_irqsave(&qp_info->send_queue.lock, flags);
 	list_for_each_entry(mad_list, &qp_info->send_queue.list, list) {



More information about the general mailing list