linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux 2.4.21-pre7: compilation error in ac97_codec.c
@ 2003-04-04 23:16 Mathias Kretschmer
  2003-04-05  0:26 ` Alessandro Suardi
  0 siblings, 1 reply; 3+ messages in thread
From: Mathias Kretschmer @ 2003-04-04 23:16 UTC (permalink / raw)
  To: linux-kernel

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ac97_codec 
-DEXPORT_SYMTAB -c ac97_codec.c
ac97_codec.c:131: `AC97_NO_PCM_VOLUME' undeclared here (not in a function)
ac97_codec.c:131: initializer element is not constant
ac97_codec.c:131: (near initialization for `ac97_codec_ids[12].flags')
ac97_codec.c:132: `AC97_NO_PCM_VOLUME' undeclared here (not in a function)
ac97_codec.c:132: initializer element is not constant
ac97_codec.c:132: (near initialization for `ac97_codec_ids[13].flags')
ac97_codec.c:133: `AC97_NO_PCM_VOLUME' undeclared here (not in a function)
ac97_codec.c:133: initializer element is not constant
ac97_codec.c:133: (near initialization for `ac97_codec_ids[14].flags')
ac97_codec.c:144: `AC97_DELUDED_MODEM' undeclared here (not in a function)
ac97_codec.c:144: initializer element is not constant
ac97_codec.c:144: (near initialization for `ac97_codec_ids[25].flags')
ac97_codec.c: In function `ac97_probe_codec':
ac97_codec.c:763: structure has no member named `modem'
ac97_codec.c:774: structure has no member named `flags'
ac97_codec.c:780: structure has no member named `flags'
ac97_codec.c:780: `AC97_DELUDED_MODEM' undeclared (first use in this 
function)
ac97_codec.c:780: (Each undeclared identifier is reported only once
ac97_codec.c:780: for each function it appears in.)
ac97_codec.c:781: structure has no member named `modem'
ac97_codec.c:786: structure has no member named `modem'
ac97_codec.c: In function `ac97_init_mixer':
ac97_codec.c:808: structure has no member named `flags'
ac97_codec.c:808: `AC97_NO_PCM_VOLUME' undeclared (first use in this 
function)
ac97_codec.c:839: structure has no member named `flags'
make[3]: *** [ac97_codec.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20/drivers/sound'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20/drivers/sound'
make[1]: *** [_subdir_sound] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/drivers'
make: *** [_dir_drivers] Error 2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux 2.4.21-pre7: compilation error in ac97_codec.c
  2003-04-04 23:16 Linux 2.4.21-pre7: compilation error in ac97_codec.c Mathias Kretschmer
@ 2003-04-05  0:26 ` Alessandro Suardi
  2003-04-05 16:56   ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Alessandro Suardi @ 2003-04-05  0:26 UTC (permalink / raw)
  To: Mathias Kretschmer; +Cc: linux-kernel

Mathias Kretschmer wrote:
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall 
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 
> -nostdinc -iwithprefix include -DKBUILD_BASENAME=ac97_codec 
> -DEXPORT_SYMTAB -c ac97_codec.c
> ac97_codec.c:131: `AC97_NO_PCM_VOLUME' undeclared here (not in a function)
> ac97_codec.c:131: initializer element is not constant
> ac97_codec.c:131: (near initialization for `ac97_codec_ids[12].flags')
> ac97_codec.c:132: `AC97_NO_PCM_VOLUME' undeclared here (not in a function)
> ac97_codec.c:132: initializer element is not constant
> ac97_codec.c:132: (near initialization for `ac97_codec_ids[13].flags')
> ac97_codec.c:133: `AC97_NO_PCM_VOLUME' undeclared here (not in a function)
> ac97_codec.c:133: initializer element is not constant
> ac97_codec.c:133: (near initialization for `ac97_codec_ids[14].flags')
> ac97_codec.c:144: `AC97_DELUDED_MODEM' undeclared here (not in a function)
> ac97_codec.c:144: initializer element is not constant
> ac97_codec.c:144: (near initialization for `ac97_codec_ids[25].flags')
> ac97_codec.c: In function `ac97_probe_codec':
> ac97_codec.c:763: structure has no member named `modem'

[snip]

Same for i810_audio:

gcc -D__KERNEL__ -I/share/src/linux-2.4.21-pre7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_audio  -c -o i810_audio.o i810_audio.c
i810_audio.c: In function `i810_ac97_init':
i810_audio.c:2930: structure has no member named `modem'
i810_audio.c: In function `i810_probe':
i810_audio.c:3261: warning: label `out_chan' defined but not used
make[3]: *** [i810_audio.o] Error 1
make[3]: Leaving directory `/share/src/linux-2.4.21-pre7/drivers/sound'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/share/src/linux-2.4.21-pre7/drivers/sound'
make[1]: *** [_subdir_sound] Error 2
make[1]: Leaving directory `/share/src/linux-2.4.21-pre7/drivers'
make: *** [_dir_drivers] Error 2

--alessandro

  "Se e' vero che ad ogni rinuncia corrisponde una contropartita considerevole
    privarsi dell'anima comporterebbe una lauta ricompensa"
       (Carmen Consoli, "L'eccezione")


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux 2.4.21-pre7: compilation error in ac97_codec.c
  2003-04-05  0:26 ` Alessandro Suardi
@ 2003-04-05 16:56   ` Alan Cox
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2003-04-05 16:56 UTC (permalink / raw)
  To: Alessandro Suardi; +Cc: Mathias Kretschmer, Linux Kernel Mailing List

On Sad, 2003-04-05 at 01:26, Alessandro Suardi wrote:
> Same for i810_audio:
> 
> gcc -D__KERNEL__ -I/share/src/linux-2.4.21-pre7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=i810_audio  -c -o i810_audio.o i810_audio.c
> i810_audio.c: In function `i810_ac97_init':
> i810_audio.c:2930: structure has no member named `modem'
> i810_audio.c: In function `i810_probe':
> i810_audio.c:3261: warning: label `out_chan' defined but not used

Use the -ac tree ac97 code. Marcelo merged some but not all of it. The
structures changed with the logic fixes


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-05 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04 23:16 Linux 2.4.21-pre7: compilation error in ac97_codec.c Mathias Kretschmer
2003-04-05  0:26 ` Alessandro Suardi
2003-04-05 16:56   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).