mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: carbonated beverage <ramune@net-ronin.org>
To: linux-kernel@vger.kernel.org
Subject: compile fix net/core/dev.c
Date: Mon, 21 Jun 2004 05:06:43 -0700	[thread overview]
Message-ID: <20040621120643.GA8827@net-ronin.org> (raw)

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

                 reply	other threads:[~2004-06-21 12:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040621120643.GA8827@net-ronin.org \
    --to=ramune@net-ronin.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®