2001-04-16 19:43:15

by Marcelo Tosatti

[permalink] [raw]
Subject: buz.c compile error


Kernel 2.4.4-pre3.

gcc -D__KERNEL__ -I/home/marcelo/rpm/BUILD/kernel-2.4.3/linux/include
-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS
-include
/home/marcelo/rpm/BUILD/kernel-2.4.3/linux/include/linux/modversions.h
-c -o buz.o buz.c
buz.c: In function `v4l_fbuffer_alloc':
buz.c:188: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c:188: (Each undeclared identifier is reported only once
buz.c:188: for each function it appears in.)
buz.c: In function `jpg_fbuffer_alloc':
buz.c:262: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c:256: warning: `alloc_contig' might be used uninitialized in this
function
buz.c: In function `jpg_fbuffer_free':
buz.c:322: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c:316: warning: `alloc_contig' might be used uninitialized in this
function
buz.c: In function `zoran_ioctl':
buz.c:2837: `KMALLOC_MAXSIZE' undeclared (first use in this function)
make[3]: *** [buz.o] Error 1
make[3]: Leaving directory
`/home/marcelo/rpm/BUILD/kernel-2.4.3/linux/drivers/media/video'
make[2]: *** [_modsubdir_video] Error 2
make[2]: Leaving directory
`/home/marcelo/rpm/BUILD/kernel-2.4.3/linux/drivers/media'
make[1]: *** [_modsubdir_media] Error 2
make[1]: Leaving directory
`/home/marcelo/rpm/BUILD/kernel-2.4.3/linux/drivers'
make: *** [_mod_drivers] Error 2



2001-04-16 23:43:09

by Alan

[permalink] [raw]
Subject: Re: buz.c compile error

> Kernel 2.4.4-pre3.
>
> gcc -D__KERNEL__ -I/home/marcelo/rpm/BUILD/kernel-2.4.3/linux/include
> -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
> -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -DMODVERSIONS
> -include
> /home/marcelo/rpm/BUILD/kernel-2.4.3/linux/include/linux/modversions.h
> -c -o buz.o buz.c
> buz.c: In function `v4l_fbuffer_alloc':
> buz.c:188: `KMALLOC_MAXSIZE' undeclared (first use in this function)

I dont plan to fix this. buz.c is sufficiently broken that I'll be submitting
Linus a patch to replace it with the generic Zoran driver once its been through
a clean up and maybe resynched with the work being done in their CVS tree