Skip to contentSkip to conversation

2.4.20-pre1 warnings cleanup

PATCH In review Krzysztof Halasa 1 participant 2 messages Aug 10, 2002 – Aug 11, 2002 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.20-pre1 warnings cleanup

Hi,

The following patch clears some compiler warning messages from 2.4.20-pre1 and eliminates unused code.

Signature · 2 lines
Krzysztof Halasa
Network Administrator
#1 lore raw

Oops,

Quoted 2 lines · Krzysztof Halasa

The following patch clears some compiler warning messages from 2.4.20-pre1 and eliminates unused code.

The patch is attached.

Signature · 2 lines
Krzysztof Halasa
Network Administrator
arch/i386/kernel/dmi_scan.c renamed from arch/i386/kernel/dmi_scan.c.orig +5 -3
@@ -186,12 +186,13 @@
 #define MATCH(a,b)	{ a, b }
 
 /*
- *	We have problems with IDE DMA on some platforms. In paticular the
+ *	We have problems with IDE DMA on some platforms. In particular the
  *	KT7 series. On these it seems the newer BIOS has fixed them. The
  *	rule needs to be improved to match specific BIOS revisions with
  *	corruption problems
- */ 
- 
+ */
+
+#if 0
 static __init int disable_ide_dma(struct dmi_blacklist *d)
 {
 #ifdef CONFIG_BLK_DEV_IDE
@@ -204,6 +205,7 @@
 #endif	
 	return 0;
 }
+#endif
 
 /* 
  * Reboot options and system auto-detection code provided by
init/do_mounts.c renamed from init/do_mounts.c.orig +2 -0
@@ -882,6 +882,7 @@
 #define WSIZE 0x8000    /* window size--must be a power of two, and */
 			/*  at least 32K for zip's deflate method */
 
+#ifdef CONFIG_BLK_DEV_RAM
 static uch *inbuf;
 static uch *window;
 
@@ -1006,5 +1007,6 @@
 	kfree(window);
 	return result;
 }
+#endif /* CONFIG_BLK_DEV_RAM */
 
 #endif  /* BUILD_CRAMDISK */
arch/i386/kernel/setup.c renamed from arch/i386/kernel/setup.c.orig +2 -0
@@ -175,6 +175,8 @@
 static int disable_x86_fxsr __initdata = 0;
 static int disable_x86_ht __initdata = 0;
 
+static int __init have_cpuid_p(void);
+
 int enable_acpi_smp_table;
 
 #if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE)