mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: i386/dmi_scan warning removal
Date: Wed, 13 Aug 2003 23:47:59 +0200	[thread overview]
Message-ID: <20030813234759.06056c1a.khali@linux-fr.org> (raw)


Hi Marcelo,

Here is a patch against 2.4.31-bk32 that removes a compilation warning
in arch/i386/kernel/dmi_scan.c. The warning is generated by an unused
variable that is only needed when some debugging code is turned on. The
patch fixes that. It is mainly a backport from what was made in the
2.5/2.6 kernel tree, so I take no credit for it.

The problem is not present in the 2.2 kernel tree, so no fix is needed
there.

Please apply, thanks.
Jean.


--- 2.4.21-bk32/arch/i386/kernel/dmi_scan.c	Wed Aug 13 20:55:54 2003
+++ 2.4.21-bk32/arch/i386/kernel/dmi_scan.c	Wed Aug 13 23:17:32 2003
@@ -23,8 +23,13 @@
 	u16	handle;
 };
 
+#undef DMI_DEBUG
+
+#ifdef DMI_DEBUG
+#define dmi_printk(x) printk x
+#else
 #define dmi_printk(x)
-//#define dmi_printk(x) printk x
+#endif
 
 static char * __init dmi_string(struct dmi_header *dm, u8 s)
 {
@@ -941,7 +946,9 @@
 
 static void __init dmi_decode(struct dmi_header *dm)
 {
+#ifdef DMI_DEBUG
 	u8 *data = (u8 *)dm;
+#endif
 	
 	switch(dm->type)
 	{



-- 
http://www.ensicaen.ismra.fr/~delvare/

                 reply	other threads:[~2003-08-13 21:47 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=20030813234759.06056c1a.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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®