[coreboot] [PATCH] CBFS bounce buffer fix

Myles Watson mylesgw at gmail.com
Wed Sep 23 22:23:05 CEST 2009


src/boot/selfboot.c: In function 'get_bounce_buffer':
src/boot/ssrc/boot/selfboot.c: In function 'get_bounce_buffer':
src/boot/selfboot.c:113: warning: declaration of 'bounce_size' shadows a
global elfboot.c:113: warning: declaration of 'bounce_size' shadows a global



The global never got initialized, so I couldn't boot a kernel.  Now I can,
but I'm not sure this is the most elegant fix, or even that it is 100%
correct.

While I was there I changed another bounce_size to size to avoid confusion
with the global, and made selfboot static to get rid of this warning:

src/boot/selfboot.c:508: warning: no previous prototype for 'selfboot'

Signed-off-by: Myles Watson <mylesgw at gmail.com>

Thanks,
Myles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090923/2aefcea9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbfs_bounce.diff
Type: text/x-patch
Size: 3459 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090923/2aefcea9/attachment.diff>


More information about the coreboot mailing list