diff options
| author | Andrew Morton <akpm@digeo.com> | 2002-10-28 16:21:51 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@suse.de> | 2002-10-28 16:21:51 -0800 |
| commit | ba3d641992e84856cfc675f89915c4fff8f2fdc4 (patch) | |
| tree | e82ab8ecb1d1692d4db1b91a4668efaed1802d8c | |
| parent | 2829a935f02f60aa1b409b8e1612f34d8f023ada (diff) | |
[PATCH] fid dmi compile warning
Local variable `data' is only used for debugging.
| -rw-r--r-- | arch/i386/kernel/dmi_scan.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/i386/kernel/dmi_scan.c b/arch/i386/kernel/dmi_scan.c index 0a280fbdad0d..eb6e601928fd 100644 --- a/arch/i386/kernel/dmi_scan.c +++ b/arch/i386/kernel/dmi_scan.c @@ -21,8 +21,13 @@ struct dmi_header 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) { @@ -832,7 +837,9 @@ fail: static void __init dmi_decode(struct dmi_header *dm) { +#ifdef DMI_DEBUG u8 *data = (u8 *)dm; +#endif switch(dm->type) { |
