mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: blaisorblade@yahoo.it
To: torvalds@osdl.org
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org, blaisorblade@yahoo.it
Subject: [patch 1/3] fix defined but unused warning
Date: Wed, 30 Mar 2005 19:32:07 +0200	[thread overview]
Message-ID: <20050330173212.0851AE0735@zion> (raw)


Fix "defined but unused" warning in kernel/sched.c.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 linux-2.6.11-paolo/kernel/sched.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN kernel/sched.c~fix-def-notused-warn kernel/sched.c
--- linux-2.6.11/kernel/sched.c~fix-def-notused-warn	2005-03-27 22:14:49.000000000 +0200
+++ linux-2.6.11-paolo/kernel/sched.c	2005-03-27 22:15:00.000000000 +0200
@@ -314,7 +314,9 @@ static inline void task_rq_unlock(runque
 static int show_schedstat(struct seq_file *seq, void *v)
 {
 	int cpu;
+#ifdef CONFIG_SMP
 	enum idle_type itype;
+#endif
 
 	seq_printf(seq, "version %d\n", SCHEDSTAT_VERSION);
 	seq_printf(seq, "timestamp %lu\n", jiffies);
_

                 reply	other threads:[~2005-03-30 18:35 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=20050330173212.0851AE0735@zion \
    --to=blaisorblade@yahoo.it \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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®