From: Bharata B Rao <bharata@in.ibm.com>
To: "Martin J. Bligh" <mbligh@aracnet.com>
Cc: Adrian Bunk <bunk@fs.tum.de>,
linux-kernel <linux-kernel@vger.kernel.org>,
Suparna Bhattacharya <suparna@in.ibm.com>
Subject: Re: 2.5.69-mjb1: undefined reference to `blk_queue_empty'
Date: Tue, 13 May 2003 12:48:07 +0530 [thread overview]
Message-ID: <20030513124807.A31823@in.ibm.com> (raw)
In-Reply-To: <20570000.1052797864@[10.10.2.4]>; from mbligh@aracnet.com on Mon, May 12, 2003 at 08:51:05PM -0700
On Mon, May 12, 2003 at 08:51:05PM -0700, Martin J. Bligh wrote:
>
> --Adrian Bunk <bunk@fs.tum.de> wrote (on Monday, May 12, 2003 22:51:40 +0200):
>
> > <-- snip -->
> >
> > ...
> > gcc -Wp,-MD,drivers/dump/.dump_blockdev.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
> > -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=dump_blockdev
> > \-DKBUILD_MODNAME=dump_blockdev -c -o drivers/dump/dump_blockdev.o
> > drivers/dump/dump_blockdev.c
> > drivers/dump/dump_blockdev.c: In function `dump_block_silence':
> > drivers/dump/dump_blockdev.c:264: warning: implicit declaration of function `blk_queue_empty'
> > ...
> > 386/oprofile/built-in.o net/built-in.o --end-group -o .tmp_vmlinux1
> > drivers/built-in.o(.text+0x77edaf): In function `dump_block_silence':
> > : undefined reference to `blk_queue_empty'
> > ...
> > make: *** [.tmp_vmlinux1] Error 1
> >
> > <-- snip -->
> >
> > This is the only occurence of blk_queue_empty in the whole kernel tree.
>
> Thanks Adrian ... this is LKCD stuff, maybe Suparna / Bharata can fix it?
> Looks like it disappeared in 2.5.67 or so.
>
Martin,
I have already sent you a fix for this. Anyway here it is again.
--- linux-2.5.69/drivers/dump/dump_blockdev.c.orig Tue May 13 12:30:49 2003
+++ linux-2.5.69/drivers/dump/dump_blockdev.c Tue May 13 12:34:09 2003
@@ -261,7 +261,7 @@
/* For now we assume we have the device to ourselves */
/* Just a quick sanity check */
- if (!blk_queue_empty(bdev_get_queue(dump_bdev->bdev))) {
+ if (elv_next_request(bdev_get_queue(dump_bdev->bdev))) {
/* i/o in flight - safer to quit */
return -EBUSY;
}
Regards,
Bharata.
next prev parent reply other threads:[~2003-05-13 7:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-11 3:44 2.5.69-mjb1 Martin J. Bligh
2003-05-11 13:33 ` 2.5.69-mjb1 Zwane Mwaikambo
2003-05-11 13:12 ` 2.5.69-mjb1 Martin J. Bligh
2003-05-12 13:29 ` 2.5.69-mjb1 William Lee Irwin III
2003-05-12 12:40 ` 2.5.69-mjb1 Martin J. Bligh
2003-05-12 15:03 ` 2.5.69-mjb1 William Lee Irwin III
2003-05-12 13:07 ` 2.5.69-mjb1 Martin J. Bligh
2003-05-12 15:34 ` 2.5.69-mjb1 Dave Hansen
2003-05-12 13:43 ` 2.5.69-mjb1 Martin J. Bligh
2003-05-12 15:11 ` 2.5.69-mjb1 Dave Hansen
2003-05-12 15:05 ` 2.5.69-mjb1 Dave Hansen
2003-05-13 1:23 ` [Lse-tech] 2.5.69-mjb1 William Lee Irwin III
2003-05-13 3:41 ` Martin J. Bligh
2003-05-13 6:27 ` William Lee Irwin III
2003-05-13 6:42 ` Andi Kleen
2003-05-12 20:51 ` 2.5.69-mjb1: undefined reference to `blk_queue_empty' Adrian Bunk
2003-05-13 3:51 ` Martin J. Bligh
2003-05-13 7:18 ` Bharata B Rao [this message]
2003-05-13 13:58 ` Martin J. Bligh
2003-05-13 18:11 ` Jens Axboe
2003-05-14 8:08 ` Bharata B Rao
2003-05-14 8:32 ` Jens Axboe
2003-05-15 4:07 ` Bharata B Rao
2003-05-15 7:29 ` Jens Axboe
2003-05-15 9:16 ` Bharata B Rao
2003-05-15 12:52 ` Martin J. Bligh
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=20030513124807.A31823@in.ibm.com \
--to=bharata@in.ibm.com \
--cc=bunk@fs.tum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@aracnet.com \
--cc=suparna@in.ibm.com \
/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.