* 2.5.45: drivers/mtd/mtdblock.c won't compile -- misordered declaration
@ 2002-11-01 5:24 Miles Bader
2002-11-05 4:45 ` 2.5.46: " Miles Bader
0 siblings, 1 reply; 3+ messages in thread
From: Miles Bader @ 2002-11-01 5:24 UTC (permalink / raw)
To: linux-kernel
When I compile 2.5.45, I get the following errors:
v850e-elf-gcc -Wp,-MD,drivers/mtd/.mtdblock.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -g -fomit-frame-pointer -fno-strict-aliasing -fno-common -mv850e -ffixed-r16 -mno-prolog-function -fno-builtin -D__linux__ -DUTS_SYSNAME=\"uClinux\" -nostdinc -iwithprefix include -DKBUILD_BASENAME=mtdblock -c -o drivers/mtd/mtdblock.o drivers/mtd/mtdblock.c
drivers/mtd/mtdblock.c:398: parse error before `struct'
drivers/mtd/mtdblock.c:399: `p' undeclared (first use in this function)
I fixed this locally as follows:
diff -ruN -X../cludes ../orig/linux-2.5.45-uc1/drivers/mtd/mtdblock.c drivers/mtd/mtdblock.c
--- ../orig/linux-2.5.45-uc1/drivers/mtd/mtdblock.c 2002-10-31 11:41:04.000000000 +0900
+++ drivers/mtd/mtdblock.c 2002-11-01 12:43:26.000000000 +0900
@@ -393,9 +393,10 @@
unsigned int res;
while (!blk_queue_empty(&mtd_queue)) {
+ struct mtdblk_dev **p;
struct request *req = elv_next_request(&mtd_queue);
spin_unlock_irq(mtd_queue.queue_lock);
- struct mtdblk_dev **p = req->rq_disk->private_data;
+ p = req->rq_disk->private_data;
mtdblk = *p;
res = 0;
Thanks,
-Miles
--
Quidquid latine dictum sit, altum viditur.
^ permalink raw reply [flat|nested] 3+ messages in thread
* 2.5.46: drivers/mtd/mtdblock.c won't compile -- misordered declaration
2002-11-01 5:24 2.5.45: drivers/mtd/mtdblock.c won't compile -- misordered declaration Miles Bader
@ 2002-11-05 4:45 ` Miles Bader
2002-11-05 9:18 ` Russell King
0 siblings, 1 reply; 3+ messages in thread
From: Miles Bader @ 2002-11-05 4:45 UTC (permalink / raw)
To: linux-kernel
[This is a repost of my earlier message, since the problem doesn't seem
to have been fixed in 2.5.46; could someone please look at this?
I don't think it should be controversial...]
When I compile 2.5.45, I get the following errors:
v850e-elf-gcc -Wp,-MD,drivers/mtd/.mtdblock.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -g -fomit-frame-pointer -fno-strict-aliasing -fno-common -mv850e -ffixed-r16 -mno-prolog-function -fno-builtin -D__linux__ -DUTS_SYSNAME=\"uClinux\" -nostdinc -iwithprefix include -DKBUILD_BASENAME=mtdblock -c -o drivers/mtd/mtdblock.o drivers/mtd/mtdblock.c
drivers/mtd/mtdblock.c:398: parse error before `struct'
drivers/mtd/mtdblock.c:399: `p' undeclared (first use in this function)
I fixed this locally as follows:
diff -ruN -X../cludes ../orig/linux-2.5.45-uc1/drivers/mtd/mtdblock.c drivers/mtd/mtdblock.c
--- ../orig/linux-2.5.45-uc1/drivers/mtd/mtdblock.c 2002-10-31 11:41:04.000000000 +0900
+++ drivers/mtd/mtdblock.c 2002-11-01 12:43:26.000000000 +0900
@@ -393,9 +393,10 @@
unsigned int res;
while (!blk_queue_empty(&mtd_queue)) {
+ struct mtdblk_dev **p;
struct request *req = elv_next_request(&mtd_queue);
spin_unlock_irq(mtd_queue.queue_lock);
- struct mtdblk_dev **p = req->rq_disk->private_data;
+ p = req->rq_disk->private_data;
mtdblk = *p;
res = 0;
Thanks,
-Miles
--
o The existentialist, not having a pillow, goes everywhere with the book by
Sullivan, _I am going to spit on your graves_.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.5.46: drivers/mtd/mtdblock.c won't compile -- misordered declaration
2002-11-05 4:45 ` 2.5.46: " Miles Bader
@ 2002-11-05 9:18 ` Russell King
0 siblings, 0 replies; 3+ messages in thread
From: Russell King @ 2002-11-05 9:18 UTC (permalink / raw)
To: Miles Bader; +Cc: linux-kernel
On Tue, Nov 05, 2002 at 01:45:22PM +0900, Miles Bader wrote:
> [This is a repost of my earlier message, since the problem doesn't seem
> to have been fixed in 2.5.46; could someone please look at this?
> I don't think it should be controversial...]
>
> When I compile 2.5.45, I get the following errors:
It'll be fixed in 2.5.47 - Linus has already incorporated the following.
I just missed 2.5.46 by a few hours (because I normally send my requests
to Linus at around 11pm - Midnight GMT.)
# --------------------------------------------
# 02/11/04 rmk@flint.arm.linux.org.uk 1.896
# [MTD] Fix mtdblock.c build error
# Move spin_unlock_irq() down one line.
# --------------------------------------------
diff -Nru a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
--- a/drivers/mtd/mtdblock.c Mon Nov 4 22:56:17 2002
+++ b/drivers/mtd/mtdblock.c Mon Nov 4 22:56:17 2002
@@ -394,8 +394,8 @@
while (!blk_queue_empty(&mtd_queue)) {
struct request *req = elv_next_request(&mtd_queue);
- spin_unlock_irq(mtd_queue.queue_lock);
struct mtdblk_dev **p = req->rq_disk->private_data;
+ spin_unlock_irq(mtd_queue.queue_lock);
mtdblk = *p;
res = 0;
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-05 9:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01 5:24 2.5.45: drivers/mtd/mtdblock.c won't compile -- misordered declaration Miles Bader
2002-11-05 4:45 ` 2.5.46: " Miles Bader
2002-11-05 9:18 ` Russell King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox