Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Unable to build a BEAGLEBOARD kernel



On Sun, Sep 16, 2012 at 09:47:34PM +0000, Pierre Pronchery wrote:
>               Hi current-users@, port-arm@,
> 
> I am currently unable to build an evbarm kernel for the Beagleboard; it 
> fails with the following error:
> 
> === BEGIN PASTE ===
>     compile  BEAGLEBOARD/arm32_kvminit.o
> cc1: warnings being treated as errors
> /home/khorben/Projects/netbsd/src/sys/arch/arm/arm32/arm32_kvminit.c: In 
> function 'arm32_kernel_vm_init':
> /home/khorben/Projects/netbsd/src/sys/arch/arm/arm32/
> arm32_kvminit.c:359:1: error: not protecting local variables: variable 
> length buffer

Generally variable length buffers are not a good idea in the kernel.
There is very limited stack space so you have to know about the largest
possible value - which means you might as well allocate it.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index