[coreboot] Warnings

Stefan Reinauer stepan at coresystems.de
Fri Apr 30 19:50:57 CEST 2010

On 4/30/10 7:13 PM, Myles Watson wrote:
> As of 5512, these are the last four warnings that are not "defined but
> not used" warnings.
What's your impression... should we activate -Wno-unused ? or should we
attempt to fix them?

I'd like to go drop all / most of the #ifdef UNUSED_CODE segments from
coreboot over time, making it easier to follow the code that is actually

Most of the existing warnings are amd k8 / fam10 warnings... and it's
kind of tricky to understand why one board does init different than
another one. Why don't all boards use " wait_all_aps_started" and / or "
wait_all_core0_started" and / or "allow_all_aps_stop"? I think the
unused messages show that we have too much unnecessary diversity here
(aka rank growth)
> src/northbridge/amd/gx2/chipsetinit.c:271: warning: suggest
> parentheses around '-' inside '<<'
This would need help from someone with a GX2 (or willing to check out
the data sheets ;-)

> src/northbridge/amd/lx/raminit.c:334: warning: array subscript is
> above array bounds
Marc indicated, this could be a compiler "problem". We could maybe add
an explicit check for the array index.

> src/northbridge/via/vx800/pci_rawops.h:43:2: warning: #warning "FIXME:
> get rid of this extra copy of pci access functions."

Gone with 5513

> src/southbridge/intel/pxhd/pxhd_bridge.c:70:2: warning: #warning
> "Please review lots of dead code here."
Gone with 5514

coresystems GmbH . Brahmsstr. 16 . D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 . Fax: +49 761 7664613
Email: info at coresystems.de  . http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg . HRB 7656
Geschäftsführer: Stefan Reinauer . Ust-IdNr.: DE245674866

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100430/72942bfb/attachment.html>

More information about the coreboot mailing list