KMALLOC_MAXSIZE undefined in drivers/media/video/buz.c in kernel

Kristian_Söderblom (ksoderbl@mail.niksula.cs.hut.fi)
Fri, 20 Apr 2001 20:11:41 +0300


Hello!

I was compiling kernel 2.4.3 and got this:
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 `/usr/src/linux-2.4.3/drivers/media/video'
make[2]: *** [_modsubdir_video] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.3/drivers/media'
make[1]: *** [_modsubdir_media] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.3/drivers'
make: *** [_mod_drivers] Error 2

In kernel 2.4.2, instead of KMALLOC_MAXSIZE, there is MAX_KMALLOC_MEM
which is defined at the beginning of the file buz.c (2.4.2) as
(512*1024). The compilation went ok after I did define KMALLOC_MAXSIZE.

There should not be any problem as I don't think I need the buz driver, I
had just unknowingly put at into the config. However, I guess it should be
fixed.

Kristian Söderblom,
wannabe kernel hacker

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