From: "Bjorn Eriksson" <mdeans@algonet.se>
To: <mtd@infradead.org>
Subject: Changes to Config.in, mtdchar.c & mtdcore.c
Date: Fri, 22 Sep 2000 17:47:45 +0200 [thread overview]
Message-ID: <003201c024ac$73198100$0800a8c0@win95.inteloop.se> (raw)
I'm compiling on 2.2.14-16ish, as compatmac.h (and sysdep-2.2.h) defines
mod_init_t as 'static int __init' for kernel version < 2.3.0 I don't see how
them init-funcs() can be called from mtdcore.c (when compiled as
non-module). What am I missing?
* Anyways, some changes. Config.in need to extra "":
Index: mtd/kernel/Config.in
===================================================================
RCS file: /home/cvs/mtd/kernel/Config.in,v
retrieving revision 1.27
diff -u -r1.27 Config.in
--- mtd/kernel/Config.in 2000/09/14 11:09:37 1.27
+++ mtd/kernel/Config.in 2000/09/22 14:05:52
@@ -6,7 +6,7 @@
tristate 'Memory Technology Device (MTD) support' CONFIG_MTD
-if [ $CONFIG_MTD = "y" ]; then
+if [ "$CONFIG_MTD" = "y" ]; then
comment 'Debugging'
int 'Debugging verbosity (0 = quiet, 3 = noisy)'
CONFIG_MTD_DEBUG_VERBOSE 0
fi
* mtdchar.c tries to initialise 'file_operations.owner', I didn't find this
in 2.3.99-pre6.
Index: mtd/kernel/mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/kernel/mtdchar.c,v
retrieving revision 1.12
diff -u -r1.12 mtdchar.c
--- mtd/kernel/mtdchar.c 2000/09/14 14:26:08 1.12
+++ mtd/kernel/mtdchar.c 2000/09/22 14:05:52
@@ -376,7 +376,7 @@
} /* memory_ioctl */
static struct file_operations mtd_fops = {
- owner: THIS_MODULE,
+ /*Whats this? owner: THIS_MODULE,*/
llseek: mtd_lseek, /* lseek */
read: mtd_read, /* read */
write: mtd_write, /* write */
* And mtdcore.c could use a extern-declaration.
Index: mtd/kernel/mtdcore.c
===================================================================
RCS file: /home/cvs/mtd/kernel/mtdcore.c,v
retrieving revision 1.18
diff -u -r1.18 mtdcore.c
--- mtd/kernel/mtdcore.c 2000/09/18 15:54:06 1.18
+++ mtd/kernel/mtdcore.c 2000/09/22 14:05:53
@@ -67,6 +67,9 @@
#ifdef CONFIG_MTD_SPIA_NAND
extern int init_spia_nand(void);
#endif
+#ifdef CONFIG_MTD_MTDRAM
+extern /*mod_init_t contains 'static'*/int init_mtdram(void);
+#endif
#ifdef CONFIG_FTL
extern int init_ftl(void);
#endif
//Björnen.
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next reply other threads:[~2000-09-22 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-22 15:47 Bjorn Eriksson [this message]
2000-09-22 16:52 ` Changes to Config.in, mtdchar.c & mtdcore.c David Given
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='003201c024ac$73198100$0800a8c0@win95.inteloop.se' \
--to=mdeans@algonet.se \
--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