All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Adrian Bunk <bunk@fs.tum.de>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>,
	dwmw2@redhat.com, trivial@rustcorp.com.au
Subject: Re: [2.5 patch] fix drivers/mtd/mtdblock.c compile
Date: Tue, 8 Apr 2003 13:46:42 +0200	[thread overview]
Message-ID: <20030408114642.GX786@suse.de> (raw)
In-Reply-To: <20030408114446.GF5046@fs.tum.de>

On Tue, Apr 08 2003, Adrian Bunk wrote:
> 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;
>  		spin_unlock_irq(mtd_queue.queue_lock);
>  		mtdblk = *p;

Thanks, obviously correct!

-- 
Jens Axboe


  reply	other threads:[~2003-04-08 11:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 17:53 Linux 2.5.67 Linus Torvalds
2003-04-07 18:21 ` Ruslan U. Zakirov
2003-04-07 21:47 ` John Cherry
2003-04-07 22:36 ` [OOPS] : " Udo A. Steinberg
2003-04-08 22:25   ` Greg KH
2003-04-08  8:54 ` Kernel BUG linux-2.5.67 dada1
2003-04-08  8:59   ` dada1
2003-04-08  9:04   ` Andrew Morton
2003-04-08  9:24     ` dada1
2003-04-09  9:08     ` dada1
2003-04-08 11:44 ` [2.5 patch] fix drivers/mtd/mtdblock.c compile Adrian Bunk
2003-04-08 11:46   ` Jens Axboe [this message]
2003-04-08 19:17 ` Linux 2.5.67 Paweł Gołaszewski
2003-04-08 20:18   ` Paweł Gołaszewski
2003-04-08 21:54 ` Matt Reppert
2003-04-09  8:47 ` [PATCH] z2ram fix (was: Re: Linux 2.5.67) Geert Uytterhoeven
2003-04-09 10:38   ` Jens Axboe

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=20030408114642.GX786@suse.de \
    --to=axboe@suse.de \
    --cc=bunk@fs.tum.de \
    --cc=dwmw2@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /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.