public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] warning and unused in sctp.h
@ 2003-03-25  3:24 Stephen Rothwell
  2003-03-25  6:46 ` David S. Miller
  2003-03-25 15:00 ` Jon Grimm
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Rothwell @ 2003-03-25  3:24 UTC (permalink / raw)
  To: jgrimm2; +Cc: LKML, Trivial Kernel Patches, David S. Miller

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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] warning and unused in sctp.h
  2003-03-25  3:24 [PATCH] warning and unused in sctp.h Stephen Rothwell
@ 2003-03-25  6:46 ` David S. Miller
  2003-03-25 15:00 ` Jon Grimm
  1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2003-03-25  6:46 UTC (permalink / raw)
  To: sfr; +Cc: jgrimm2, linux-kernel, trivial

   From: Stephen Rothwell <sfr@canb.auug.org.au>
   Date: Tue, 25 Mar 2003 14:24:00 +1100
   
   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) :-).
   
Applied, thank you.

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

No problem. :)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] warning and unused in sctp.h
  2003-03-25  3:24 [PATCH] warning and unused in sctp.h Stephen Rothwell
  2003-03-25  6:46 ` David S. Miller
@ 2003-03-25 15:00 ` Jon Grimm
  1 sibling, 0 replies; 3+ messages in thread
From: Jon Grimm @ 2003-03-25 15:00 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: LKML, Trivial Kernel Patches, David S. Miller

Stephen Rothwell wrote:

> 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) :-).
> 

Hi Stephen.   What probably isn't obvious is that the same source is 
compiled into a user-level test harness where that variable really _is_ 
unused.  ;-)    However, this was just a hack to get rid of a 
compilation warning in the testsuite, so I'm glad to see it gone.

thanks!
-jon





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-25 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-25  3:24 [PATCH] warning and unused in sctp.h Stephen Rothwell
2003-03-25  6:46 ` David S. Miller
2003-03-25 15:00 ` Jon Grimm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox