public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4.20-BK] make new ide compile
@ 2002-12-10 14:49 Stelian Pop
  2002-12-10 16:07 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Stelian Pop @ 2002-12-10 14:49 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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
include/asm-*/system.h.

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

Stelian.

===== 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-10 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10 14:49 [PATCH 2.4.20-BK] make new ide compile Stelian Pop
2002-12-10 16:07 ` Alan Cox
2002-12-10 15:35   ` Stelian Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox