2004-04-06 03:04:20

by John Cherry

[permalink] [raw]
Subject: New compiler warning: 2.6.4->2.6.5

9 new compiler warnings between 2.6.4 and 2.6.5.

gcc: 3.2.2
arch: i386

drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
copy*user in cli"
drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
qualifiers from pointer target type
drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
from pointer target type
drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
not used
drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
not used
sound/oss/wavfront.c:2498: warning: `errno' defined but not used

John




2004-04-06 03:17:22

by Randy.Dunlap

[permalink] [raw]
Subject: Re: New compiler warning: 2.6.4->2.6.5

On 05 Apr 2004 20:04:09 -0700 John Cherry <[email protected]> wrote:

| 9 new compiler warnings between 2.6.4 and 2.6.5.
|
| gcc: 3.2.2
| arch: i386
|
| drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| copy*user in cli"
| drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| qualifiers from pointer target type
| drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| from pointer target type
| drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| not used
| drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| not used
| sound/oss/wavfront.c:2498: warning: `errno' defined but not used

hi john,

i didn't check all of these, but the #warning in applicom.c
(Je suis stupide.) has been around forever and it's listed in
both your 2.6.4 and 2.6.5 warning logs:

http://developer.osdl.org/cherry/compile/2.6/linux-2.6.4.results/2.6.4.allmodconfig.modules.txt:
drivers/char/applicom.c:522:2: warning: #warning "Je suis stupide. DW. - copy*user in cli"

and
http://developer.osdl.org/cherry/compile/2.6/linux-2.6.5.results/2.6.5.allmodconfig.modules.txt:
drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. - copy*user in cli"

Ooh, was it the line number change that made it look new???

--
~Randy

Subject: Re: New compiler warning: 2.6.4->2.6.5


Hi John,

Em 05 Apr 2004 20:04:09 -0700
John Cherry <[email protected]> escreveu:

| 9 new compiler warnings between 2.6.4 and 2.6.5.
|
| gcc: 3.2.2
| arch: i386
|
| drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| copy*user in cli"
| drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| qualifiers from pointer target type
| drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| from pointer target type
| drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| not used
| drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| not used
| sound/oss/wavfront.c:2498: warning: `errno' defined but not used

I fixed the ''errno''s warnings, the patches are in -mm.

PS: I think they are not new.

--
Luiz Fernando N. Capitulino
<[email protected]>
<http://www.telecentros.sp.gov.br>

2004-04-06 21:03:36

by John Cherry

[permalink] [raw]
Subject: Re: New compiler warning: 2.6.4->2.6.5

On Tue, 2004-04-06 at 10:18, Luiz Fernando N. Capitulino wrote:
> Hi John,
>
> Em 05 Apr 2004 20:04:09 -0700
> John Cherry <[email protected]> escreveu:
>
> | 9 new compiler warnings between 2.6.4 and 2.6.5.
> |
> | gcc: 3.2.2
> | arch: i386
> |
> | drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
> | drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
> | copy*user in cli"
> | drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
> | qualifiers from pointer target type
> | drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
> | from pointer target type
> | drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
> | not used
> | drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
> | drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
> | sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
> | not used
> | sound/oss/wavfront.c:2498: warning: `errno' defined but not used
>
> I fixed the ''errno''s warnings, the patches are in -mm.

Great. Once they are merged, the errno warnings will be gone.

>
> PS: I think they are not new.

They were new relative to 2.6.4. Check out the 2.6.4 build results:

http://developer.osdl.org/cherry/compile/2.6/linux-2.6.4.results/

John


Subject: Re: New compiler warning: 2.6.4->2.6.5

Em Tue, 06 Apr 2004 13:59:48 -0700
John Cherry <[email protected]> escreveu:

| > | 9 new compiler warnings between 2.6.4 and 2.6.5.
| > |
| > | gcc: 3.2.2
| > | arch: i386
| > |
| > | drivers/acpi/events/evmisc.c:143: warning: too many arguments for format
| > | drivers/char/applicom.c:523:2: warning: #warning "Je suis stupide. DW. -
| > | copy*user in cli"
| > | drivers/char/watchdog/cpu5wdt.c:305: warning: initialization discards
| > | qualifiers from pointer target type
| > | drivers/char/watchdog/cpu5wdt.c:305: warning: return discards qualifiers
| > | from pointer target type
| > | drivers/media/dvb/frontends/tda1004x.c:191: warning: `errno' defined but
| > | not used
| > | drivers/pcmcia/i82365.c:71: warning: `version' defined but not used
| > | drivers/pcmcia/tcic.c:64: warning: `version' defined but not used
| > | sound/isa/wavefront/wavefront_synth.c:1923: warning: `errno' defined but
| > | not used
| > | sound/oss/wavfront.c:2498: warning: `errno' defined but not used
| >
| > I fixed the ''errno''s warnings, the patches are in -mm.
|
| Great. Once they are merged, the errno warnings will be gone.
|
| >
| > PS: I think they are not new.
|
| They were new relative to 2.6.4. Check out the 2.6.4 build results:
|
| http://developer.osdl.org/cherry/compile/2.6/linux-2.6.4.results/

Oh yes, they are not new in -mm, where the time goes fast. :-)

--
Luiz Fernando N. Capitulino
<[email protected]>
<http://www.telecentros.sp.gov.br>