Re: 2.3.46: error in nbd.c

From: Alexandre Hautequest (hquest@istm.com.br)
Date: Thu Feb 17 2000 - 12:18:05 EST


Andrea Arcangeli wrote:
>
> On Thu, 17 Feb 2000, Alexandre Hautequest wrote:
>
> >gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> >-fomit-frame-pointer -fno-strict-aliasing -pipe -DCPU=586 -march=i586
> >-DMODULE -DMODVERSIONS -include
> >/usr/src/linux/include/linux/modversions.h -c -o nbd.o nbd.c
> >nbd.c: In function `nbd_clear_que':
> >nbd.c:251: warning: unused variable `flags'
> >nbd.c: In function `do_nbd_request':
> >nbd.c:291: `QUEUE_EMPTY' undeclared (first use in this function)
> >nbd.c:291: (Each undeclared identifier is reported only once
> >nbd.c:291: for each function it appears in.)
> >nbd.c: In function `nbd_ioctl':
> >nbd.c:409: warning: format argument is not a pointer (arg 3)
>
> Are you sure you patched correctly?

I don't saw any error message... neither the file was downloaded wrong.

Other thing i've saw again is cpqarray.h is looking for a linux/md.h.
The location is wrong, the file is in linux/raid/md.h. This lcoation is
pulled since the raid-0.90 patches for 2.2.5 (IIRC).

I've tried some includes (linux/blk.h, linux/lists.h -- the two files
who contains the QUEUE_EMPTY string), but w/o results.

>
> The below patch fixes two compiler warnings, it's against 2.3.46. I don't
> see other problems and nbd compiles fine in 2.3.46 here.

Maybe you have more tools at your kernel tree... Or maybe is machine
respect's w/ its owner... mine is looking like disrespect... :)
 
(snip)

> Andrea

-- 
Alexandre Hautequest - Linux User #116289
"When I'm on the road, I'm indestructible. No one can stop me. But they
try..."

O .br que não para de crescer: http://stats.distributed.net/rc5-64/psearch.php3?st=.br

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:18 EST