warning and unused in sctp.h

warning and unused in sctp.h

Post by Stephen Rothwel » Wed, 26 Mar 2003 05:30:13



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,

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

 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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

warning and unused in sctp.h

Post by David S. Mille » Wed, 26 Mar 2003 09:00:08



   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. :)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

warning and unused in sctp.h

Post by Jon Grim » Wed, 26 Mar 2003 17:10:10



> 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Temporary home for sctp.refcode.org and sctp.chicago.il.us

Due to the collapse of Northpoint, both sctp.refcode.org and
sctp.chicago.il.us have been down for more than a week.

Many of you have been asking about the web sites because of my talk at
the Linux 2.5 Summit.

I've found a temporary home for both sites--they'll probably be there
for a month or so.  The temporary locations are:
        www.cs.uchicago.edu/~piggy/sctp_refcode
        www.cs.uchicago.edu/~piggy/sctp_chicago_il_us

Some of the links are broken, but you CAN download source for both
distributions.  I'll clean it up a bit after the Bakeoff (say early
May)...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. pppd

3. Remove compile warning from net/sctp/sm_statefuns.c

4. LinuxCAD technology in a long run.

5. [8/8] fix unused function warning in drivers/block/floppy.c

6. Vfork failed

7. fix warning: unused variable powernow-k6.c

8. question about Solaris 2.4 for x86 on notebook

9. Unused variable warning in ac97_codec.c

10. GCC: "unused variable" warning not reported

11. PATCH: split up ide-pci.c:setup_host_channel to silence unused variable warning

12. fix warning: unused variable longrun.c

13. Matrox Mystique ands X.