From: David Vrabel <dvrabel@arcom.co.uk>
To: mtd@infradead.org
Subject: MTD + kernel 2.2.18
Date: Tue, 12 Dec 2000 11:51:15 +0000 [thread overview]
Message-ID: <3A361133.1E32268A@arcom.co.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
Hi,
I'm trying out MTD with kernel 2.2.18 and there appear to be some
problems with include/linux/mtd/compatmac.h. I wasn't entirely sure
what was required so find a patch attached to review.
Also some of the init functions (eg in cfi_probe.c) are incorrect. Are
they supposed to look like the ones in mtdcore.c?
David Vrabel
[-- Attachment #2: compatmac.h.patch --]
[-- Type: text/plain, Size: 1356 bytes --]
Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.10
diff -u -r1.10 compatmac.h
--- compatmac.h 2000/11/30 16:39:19 1.10
+++ compatmac.h 2000/12/12 11:40:38
@@ -221,9 +221,12 @@
#include <linux/init.h>
#endif
-#if LINUX_VERSION_CODE < 0x20300
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)
#define init_MUTEX(x) do {*(x) = MUTEX;} while (0)
#define init_MUTEX_LOCKED(x) do {*(x) = MUTEX_LOCKED;} while (0)
+#endif /* ERM? */
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
#define RQFUNC_ARG void
#define blkdev_dequeue_request(req) do {CURRENT = req->next;} while (0)
#else
@@ -244,11 +247,15 @@
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)
#define DECLARE_WAIT_QUEUE_HEAD(x) struct wait_queue *x = NULL
#define init_waitqueue_head init_waitqueue
+#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
+
static inline int try_inc_mod_count(struct module *mod)
{
#ifdef CONFIG_MODULES
@@ -329,7 +336,7 @@
#include <linux/spinlock.h>
#endif
-#if LINUX_VERSION_CODE < 0x20300
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,18)
#define set_current_state(state_value) \
do { current->state = (state_value); } while (0)
#endif
reply other threads:[~2000-12-12 11:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3A361133.1E32268A@arcom.co.uk \
--to=dvrabel@arcom.co.uk \
--cc=mtd@infradead.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