[PATCH 2.4.20-BK] make new ide compile

From: Stelian Pop (stelian@popies.net)
Date: Tue Dec 10 2002 - 09:49:04 EST

The new ide code in the latest BK 2.4 kernel does not compile.

Several symbols: local_save_flags, save_and_cli, local_irq_set
are not defined, probably due to a missing merge somewhere in

The attached (dirty) patch makes it compile again. Just in case
somebody else needs it, while waiting for the proper fix.


===== include/linux/ide.h 1.7 vs edited =====
--- 1.7/include/linux/ide.h Fri Nov 29 23:03:01 2002
+++ edited/include/linux/ide.h Tue Dec 10 12:20:01 2002
@@ -1755,5 +1755,8 @@
 #define ide_lock (io_request_lock)
 #define DRIVE_LOCK(drive) ((drive)->queue.queue_lock)
+#define local_save_flags(flags) save_flags((flags))
+#define save_and_cli(x) local_irq_save(x)
+#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable(); } while (0)
 #endif /* _IDE_H */

Stelian Pop <stelian@popies.net>
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/

This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:17 EST