Re: kernel compile warnings

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Thu, 10 Jun 2004 15:40:35 -0700
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

Received on Thu Jun 10 2004 - 20:41:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:56 UTC