Skip to contentSkip to conversation

ASOC deprecated warning

DISCUSSION Jon Smirl 3 participants 5 messages Oct 30, 2008 – Oct 31, 2008

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

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.

Signature · 2 lines
Jon Smirl
[email protected]
#1 lore raw
Quoted 4 lines · Jon Smirl

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.

author
#2 lore raw
Quoted 11 lines · Mark Brown
Quoted 4 lines · Jon Smirl

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.

Signature · 2 lines
Jon Smirl
[email protected]
#3 lore raw

At Thu, 30 Oct 2008 15:57:33 -0400,

Quoted 8 lines · Jon Smirl
Quoted 6 lines · Mark Brown
Quoted 4 lines · Jon Smirl

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.

Quoted 8 lines
Quoted 5 lines

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

#4 lore raw
In reply to Jon Smirl
Quoted 9 lines · Jon Smirl
Quoted 4 lines · Mark Brown

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.