All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Koller <clemens.koller@anagramm.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] idle.c fix unused var compile warning
Date: Fri, 16 Dec 2005 16:11:46 +0100	[thread overview]
Message-ID: <43A2D932.3030909@anagramm.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 143 bytes --]

This fixes a little warning about unused cpu variable for non SMP PPC systems.

Signed-off-by: Clemens Koller <clemens.koller@anagramm.de>
-- 

[-- Attachment #2: idle_c-fix-unused-var-warning.patch --]
[-- Type: text/plain, Size: 319 bytes --]

--- linux-2.6/arch/ppc/kernel/idle.c.ori	2005-12-14 12:27:26.000000000 +0100
+++ linux-2.6/arch/ppc/kernel/idle.c	2005-12-16 16:02:18.000000000 +0100
@@ -37,7 +37,9 @@
 void default_idle(void)
 {
 	void (*powersave)(void);
+#ifdef CONFIG_SMP
 	int cpu = smp_processor_id();
+#endif
 
 	powersave = ppc_md.power_save;
 

                 reply	other threads:[~2005-12-16 15:11 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=43A2D932.3030909@anagramm.de \
    --to=clemens.koller@anagramm.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.