public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stelian Pop <stelian@popies.net>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.4.20-BK] make new ide compile
Date: Tue, 10 Dec 2002 15:49:04 +0100	[thread overview]
Message-ID: <20021210154904.E18849@deep-space-9.dsnet> (raw)

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>

             reply	other threads:[~2002-12-10 14:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 14:49 Stelian Pop [this message]
2002-12-10 16:07 ` [PATCH 2.4.20-BK] make new ide compile Alan Cox
2002-12-10 15:35   ` Stelian Pop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021210154904.E18849@deep-space-9.dsnet \
    --to=stelian@popies.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox