[PATCH] warning and unused in sctp.h

From: Stephen Rothwell (sfr@canb.auug.org.au)
Date: Mon Mar 24 2003 - 22:24:00 EST


Hi,

This patch changes a flags argument to spin_lock_irq_save to unsigned long
and removes its unused attribute. The first gets rid of several warnings
and the second is "obviously correct" (at least according to Rusty) :-).

Thanks to DaveM for forcing me to build kernels with a 64 cross compiler :-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.66/include/net/sctp/sctp.h 2.5.66-warnings.1/include/net/sctp/sctp.h --- 2.5.66/include/net/sctp/sctp.h 2003-03-25 12:08:26.000000000 +1100 +++ 2.5.66-warnings.1/include/net/sctp/sctp.h 2003-03-25 14:19:04.000000000 +1100 @@ -356,7 +356,7 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list, struct sk_buff_head *head) { - int flags __attribute__ ((unused)); + unsigned long flags; sctp_spin_lock_irqsave(&head->lock, flags); sctp_spin_lock(&list->lock); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:18 EST