kernel compile warnings

Brooks Davis brooks at one-eyed-alien.net
Thu Jun 10 22:41:15 GMT 2004


On Fri, Jun 11, 2004 at 08:14:21AM +1000, Andy Farkas wrote:
> 
> I noticed a few "strange looking warnings" fly by during a buildkernel so
> I checked the script-file:
> 
> # grep "warning:" mkbk.out-20040610 | grep -v dereferencing | wc -l
>       50
> 
> Some examples of the three largest offenders:
> 
> src/sys/dev/drm/mga_state.c:250: warning: inlining failed in call to `mga_g200_emit_pipe'
> src/sys/dev/drm/r128_state.c:102: warning: inlining failed in call to`r128_emit_context'

These are pretty harmless.  Functions over a certain size are not
inlined even if the programmer says to.  gcc is just telling the
programmer they were ignored.

> src/sys/dev/ie/if_ie.c:763: warning: passing arg 1 of `bcopy' discards qualifiers from pointer target type

This driver one of the problem children of the tree.  The cards it
supports have generally been out of production for quite some time and
there aren't a whole lot of users left (certaintly not a lot of users
who are going to want to run 5.x on their hardware :).

> Are the Gods aware of these and should they be fixed?

In theory they should be fixed, but I doubt it will happen any time
soon.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040610/908d19aa/attachment.bin


More information about the freebsd-current mailing list