2001-11-05 08:04:34

by Manik Raina

[permalink] [raw]
Subject: [PATCH] unused function in arch/i386

Hi all,

The function disable_ide_dma is no longer in use in the
codebase, and hence this patch removes it from the build ....

Index: kernel/dmi_scan.c
===================================================================
RCS file: /vger/linux/arch/i386/kernel/dmi_scan.c,v
retrieving revision 1.10
diff -u -r1.10 dmi_scan.c
--- kernel/dmi_scan.c 13 Oct 2001 01:47:27 -0000 1.10
+++ kernel/dmi_scan.c 5 Nov 2001 07:59:16 -0000
@@ -189,7 +189,7 @@
* rule needs to be improved to match specific BIOS revisions with
* corruption problems
*/
-
+#ifdef OLDVERSION
static __init int disable_ide_dma(struct dmi_blacklist *d)
{
#ifdef CONFIG_BLK_DEV_IDE
@@ -202,6 +202,8 @@
#endif
return 0;
}
+
+#endif /* OLDVERSION */

/*
* Reboot options and system auto-detection code provided by