[lkml]   [2003]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[2.5 patch] fix drivers/mtd/mtdblock.c compile
On Mon, Apr 07, 2003 at 10:53:43AM -0700, Linus Torvalds wrote:
> Summary of changes from v2.5.66 to v2.5.67
> ============================================
> Jens Axboe:
> o kill blk_queue_empty()

This patch causes the following compile error:

<-- snip -->

gcc -Wp,-MD,drivers/mtd/.mtdblock.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6
-Iinclude/asm-i386/mach-default -nostdinc -iwithprefix include
-DKBUILD_BASENAME=mtdblock -DKBUILD_MODNAME=mtdblock -c -o
drivers/mtd/mtdblock.o drivers/mtd/mtdblock.c
drivers/mtd/mtdblock.c: In function `handle_mtdblock_request':
drivers/mtd/mtdblock.c:391: warning: assignment makes pointer from
integer without a cast
drivers/mtd/mtdblock.c:391: syntax error before '{' token
drivers/mtd/mtdblock.c:394: `p' undeclared (first use in this function)
drivers/mtd/mtdblock.c:394: (Each undeclared identifier is reported only once
drivers/mtd/mtdblock.c:394: for each function it appears in.)
drivers/mtd/mtdblock.c: At top level:
drivers/mtd/mtdblock.c:442: syntax error before '}' token
make[2]: *** [drivers/mtd/mtdblock.o] Error 1

<-- snip -->

The fix is simple:

--- linux-2.5.67-notfull/drivers/mtd/mtdblock.c.old 2003-04-08 13:39:46.000000000 +0200
+++ linux-2.5.67-notfull/drivers/mtd/mtdblock.c 2003-04-08 13:41:43.000000000 +0200
@@ -388,7 +388,7 @@
struct mtdblk_dev *mtdblk;
unsigned int res;

- while ((req = elv_next_request(&mtd_queue) != NULL) {
+ while ((req = elv_next_request(&mtd_queue)) != NULL) {
struct mtdblk_dev **p = req->rq_disk->private_data;
mtdblk = *p;



"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:34    [W:0.103 / U:1.460 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site