Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* ASOC deprecated warning
@ 2008-10-30 19:22 Jon Smirl
  2008-10-30 19:51 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Smirl @ 2008-10-30 19:22 UTC (permalink / raw)
  To: alsa-devel mailing list

What's the status of this?

 CC      sound/soc/soc-dapm.o
sound/soc/soc-dapm.c:1029: warning: 'snd_soc_dapm_connect_input' is
deprecated (declared at sound/soc/soc-dapm.c:1026)
sound/soc/soc-dapm.c:1029: warning: 'snd_soc_dapm_connect_input' is
deprecated (declared at sound/soc/soc-dapm.c:1026)

Could we have a Kconfig option of disabling deprecated APIs?
If I can get rid of this I'll have a warning free build.

-- 
Jon Smirl
jonsmirl@gmail.com

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

* Re: ASOC deprecated warning
  2008-10-30 19:22 ASOC deprecated warning Jon Smirl
@ 2008-10-30 19:51 ` Mark Brown
  2008-10-30 19:57   ` Jon Smirl
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2008-10-30 19:51 UTC (permalink / raw)
  To: Jon Smirl; +Cc: alsa-devel mailing list

On Thu, Oct 30, 2008 at 03:22:31PM -0400, Jon Smirl wrote:
> What's the status of this?

> Could we have a Kconfig option of disabling deprecated APIs?
> If I can get rid of this I'll have a warning free build.

The API is removed in ALSA git, you can cherry pick the patch over if
you want.  Otherwise I'd suggest taking it up with the people
maintaining the compiler infrastructure - there's no way to warn on use
of an API without also warning on the export of the API, which isn't
ideal.

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

* Re: ASOC deprecated warning
  2008-10-30 19:51 ` Mark Brown
@ 2008-10-30 19:57   ` Jon Smirl
  2008-10-31  6:37     ` Takashi Iwai
  2008-10-31 10:41     ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Jon Smirl @ 2008-10-30 19:57 UTC (permalink / raw)
  To: alsa-devel mailing list

On Thu, Oct 30, 2008 at 3:51 PM, Mark Brown <broonie@sirena.org.uk> wrote:
> On Thu, Oct 30, 2008 at 03:22:31PM -0400, Jon Smirl wrote:
>> What's the status of this?
>
>> Could we have a Kconfig option of disabling deprecated APIs?
>> If I can get rid of this I'll have a warning free build.
>
> The API is removed in ALSA git, you can cherry pick the patch over if
> you want.  Otherwise I'd suggest taking it up with the people
> maintaining the compiler infrastructure - there's no way to warn on use
> of an API without also warning on the export of the API, which isn't
> ideal.

sysfs has a config attribute for including legacy APIs. If it isn't
set they compile out.

-- 
Jon Smirl
jonsmirl@gmail.com

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

* Re: ASOC deprecated warning
  2008-10-30 19:57   ` Jon Smirl
@ 2008-10-31  6:37     ` Takashi Iwai
  2008-10-31 10:41     ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2008-10-31  6:37 UTC (permalink / raw)
  To: Jon Smirl; +Cc: alsa-devel mailing list

At Thu, 30 Oct 2008 15:57:33 -0400,
Jon Smirl wrote:
> 
> On Thu, Oct 30, 2008 at 3:51 PM, Mark Brown <broonie@sirena.org.uk> wrote:
> > On Thu, Oct 30, 2008 at 03:22:31PM -0400, Jon Smirl wrote:
> >> What's the status of this?
> >
> >> Could we have a Kconfig option of disabling deprecated APIs?
> >> If I can get rid of this I'll have a warning free build.
> >
> > The API is removed in ALSA git, you can cherry pick the patch over if
> > you want.  Otherwise I'd suggest taking it up with the people
> > maintaining the compiler infrastructure - there's no way to warn on use
> > of an API without also warning on the export of the API, which isn't
> > ideal.
> 
> sysfs has a config attribute for including legacy APIs. If it isn't
> set they compile out.

The functions will be removed in 2.6.29.  No further work needed.


Takashi

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

* Re: ASOC deprecated warning
  2008-10-30 19:57   ` Jon Smirl
  2008-10-31  6:37     ` Takashi Iwai
@ 2008-10-31 10:41     ` Mark Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Brown @ 2008-10-31 10:41 UTC (permalink / raw)
  To: Jon Smirl; +Cc: alsa-devel mailing list

On Thu, Oct 30, 2008 at 03:57:33PM -0400, Jon Smirl wrote:
> On Thu, Oct 30, 2008 at 3:51 PM, Mark Brown <broonie@sirena.org.uk> wrote:

> > you want.  Otherwise I'd suggest taking it up with the people
> > maintaining the compiler infrastructure - there's no way to warn on use
> > of an API without also warning on the export of the API, which isn't
> > ideal.

> sysfs has a config attribute for including legacy APIs. If it isn't
> set they compile out.

As I suggested, if you'd like to see a similar configuration option for
deprecated APIs the best people to take it up with would probably be the
people who maintain the compiler infrastructure which is used to
generate the deprecation warning so we can have something central for
this.

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

end of thread, other threads:[~2008-10-31 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30 19:22 ASOC deprecated warning Jon Smirl
2008-10-30 19:51 ` Mark Brown
2008-10-30 19:57   ` Jon Smirl
2008-10-31  6:37     ` Takashi Iwai
2008-10-31 10:41     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox