netdev
[Top] [All Lists]

compile fix net/core/dev.c

To: linux-kernel@xxxxxxxxxxxxxxx
Subject: compile fix net/core/dev.c
From: carbonated beverage <ramune@xxxxxxxxxxxxx>
Date: Mon, 21 Jun 2004 05:06:43 -0700
Organization: USAGI Project
Resent-date: Mon, 21 Jun 2004 21:16:17 +0900 (JST)
Resent-from: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Resent-message-id: <20040621.211617.499265868.yoshfuji@linux-ipv6.org>
Resent-to: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Tiny patch to make gcc 2.95.4 happy.  Declare a variable before code
preceeds it.

-- DN
Daniel

===== net/core/dev.c 1.147 vs edited =====
--- 1.147/net/core/dev.c        2004-06-20 17:35:52 -07:00
+++ edited/net/core/dev.c       2004-06-21 04:36:04 -07:00
@@ -1406,8 +1406,10 @@
           Either shot noqueue qdisc, it is even simpler 8)
         */
        if (dev->flags & IFF_UP) {
+               int cpu;
+
                preempt_disable();
-               int cpu = smp_processor_id();
+               cpu = smp_processor_id();
 
                if (dev->xmit_lock_owner != cpu) {
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

<Prev in Thread] Current Thread [Next in Thread>
  • compile fix net/core/dev.c, carbonated beverage <=