lkml.org 
[lkml]   [2003]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjecti386/dmi_scan warning removal

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/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.029 / U:3.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site