From: data <data@uniquemodem.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: mtdblock.c cannot compile under Linux 2.2.x
Date: Thu, 18 Oct 2001 21:32:11 +0800 [thread overview]
Message-ID: <3BCED9DB.28F7D365@uniquemodem.com> (raw)
In-Reply-To: 25716.1003325012@redhat.com
David,
Thanks for your reply. However, I don't quite catch your meaning for
don't apply the patch which adds the init calls. Could you please
elaborate further?
Secondly, I have encountered another error in mtdblock.c for subscribt
out of range. Could you please het me to have a look.
Best regards,
Jimmy
Compilation log:
/usr/src/linux/include/linux/mtd/compatmac.h:468:24: warning: "/*"
within comment
/usr/src/linux/include/linux/mtd/compatmac.h:469:51: warning: "/*"
within comment
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-m386 -DCPU=386 -c -o mtdblock.o mtdblock.c
In file included from /usr/src/linux/include/linux/mtd/mtd.h:12,
from mtdblock.c:14:
/usr/src/linux/include/linux/mtd/compatmac.h:468:24: warning: "/*"
within comment
/usr/src/linux/include/linux/mtd/compatmac.h:469:51: warning: "/*"
within comment
mtdblock.c: In function `cleanup_mtdblock':
mtdblock.c:660: array subscript is not an integer
make[3]: *** [mtdblock.o] Error 1
make[3]: Leaving directory `/home/root/linux-2.2.18/drivers/mtd'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/root/linux-2.2.18/drivers/mtd'
make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory `/home/root/linux-2.2.18/drivers'
make: *** [_dir_drivers] Error 2
[root@localhost linux]#
End log
Program fail at < blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));>
static void __exit cleanup_mtdblock(void)
{
leaving = 1;
wake_up(&thr_wq);
down(&thread_sem);
#ifdef CONFIG_DEVFS_FS
unregister_mtd_user(¬ifier);
devfs_unregister(devfs_dir_handle);
devfs_unregister_blkdev(MTD_BLOCK_MAJOR, DEVICE_NAME);
#else
unregister_blkdev(MAJOR_NR,DEVICE_NAME);
#endif
blk_cleanup_queue(BLK_DEFAULT_QUEUE(MAJOR_NR));
blksize_size[MAJOR_NR] = NULL;
blk_size[MAJOR_NR] = NULL;
}
module_init(init_mtdblock);
module_exit(cleanup_mtdblock);
~
David Woodhouse wrote:
> Comment out the BLKGETSIZE64 stuff in include/linux/mtd/compatmac.h
> and
> don't apply the patch which adds the init calls - 2.2.18 can do that
> the
> new way.
>
> --
> dwmw2
next prev parent reply other threads:[~2001-10-18 13:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-17 13:17 mtdblock.c cannot compile under Linux 2.2.x data
2001-10-17 13:23 ` David Woodhouse
2001-10-18 13:32 ` data [this message]
2001-10-18 13:36 ` David Woodhouse
2001-10-19 13:56 ` Problem on recognise the CFI flash chip on SC520CDP data
2001-10-19 13:59 ` David Woodhouse
2001-10-24 13:44 ` Compilation problem on linux-2.4.6 with patch 2.4.6pre3 data
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=3BCED9DB.28F7D365@uniquemodem.com \
--to=data@uniquemodem.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.