All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
@ 2012-06-27  7:34 Daniel Mack
  2012-06-27 10:17 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Mack @ 2012-06-27  7:34 UTC (permalink / raw)
  To: alsa-devel; +Cc: broonie, mr.swami.reddy, Daniel Mack

Fixes the following build warning.

  CC      sound/soc/codecs/lm49453.o
sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’:
sound/soc/codecs/lm49453.c:1511:24: warning: passing argument 3 of
‘snd_soc_register_codec’ discards qualifiers from pointer target type
include/sound/soc.h:333:5: note: expected ‘struct snd_soc_dai_driver *’
but argument is of type ‘const struct snd_soc_dai_driver *’

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 sound/soc/codecs/lm49453.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c
index 802b9f1..5bd1294 100644
--- a/sound/soc/codecs/lm49453.c
+++ b/sound/soc/codecs/lm49453.c
@@ -1358,7 +1358,7 @@ static struct snd_soc_dai_ops lm49453_lineout_dai_ops = {
 };
 
 /* LM49453 dai structure. */
-static const struct snd_soc_dai_driver lm49453_dai[] = {
+static struct snd_soc_dai_driver lm49453_dai[] = {
 	{
 		.name = "LM49453 Headset",
 		.playback = {
-- 
1.7.10.2

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
  2012-06-27  7:34 [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver Daniel Mack
@ 2012-06-27 10:17 ` Mark Brown
  2012-06-27 10:21   ` Daniel Mack
  2012-06-27 10:25   ` Takashi Iwai
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Brown @ 2012-06-27 10:17 UTC (permalink / raw)
  To: Daniel Mack; +Cc: alsa-devel, mr.swami.reddy


[-- Attachment #1.1: Type: text/plain, Size: 256 bytes --]

On Wed, Jun 27, 2012 at 09:34:36AM +0200, Daniel Mack wrote:
> Fixes the following build warning.
> 
>   CC      sound/soc/codecs/lm49453.o
> sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’:

This has been fixed for about a month...

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
  2012-06-27 10:17 ` Mark Brown
@ 2012-06-27 10:21   ` Daniel Mack
  2012-06-27 10:25   ` Takashi Iwai
  1 sibling, 0 replies; 7+ messages in thread
From: Daniel Mack @ 2012-06-27 10:21 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, mr.swami.reddy

On 27.06.2012 12:17, Mark Brown wrote:
> On Wed, Jun 27, 2012 at 09:34:36AM +0200, Daniel Mack wrote:
>> Fixes the following build warning.
>>
>>   CC      sound/soc/codecs/lm49453.o
>> sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’:
> 
> This has been fixed for about a month...
> 

Ah, ok, thanks. It's just not in Linus' tree yet, and I got the warning
while building a 3.5-rc4.


http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=sound/soc/codecs/lm49453.c;hb=HEAD#l1361

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
  2012-06-27 10:17 ` Mark Brown
  2012-06-27 10:21   ` Daniel Mack
@ 2012-06-27 10:25   ` Takashi Iwai
  2012-06-27 11:11     ` Mark Brown
  1 sibling, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2012-06-27 10:25 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, mr.swami.reddy, Daniel Mack

At Wed, 27 Jun 2012 11:17:51 +0100,
Mark Brown wrote:
> 
> On Wed, Jun 27, 2012 at 09:34:36AM +0200, Daniel Mack wrote:
> > Fixes the following build warning.
> > 
> >   CC      sound/soc/codecs/lm49453.o
> > sound/soc/codecs/lm49453.c: In function ‘lm49453_i2c_probe’:
> 
> This has been fixed for about a month...

Could you put it in the next pull request?
It's not fixed in the upstream yet.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
  2012-06-27 10:25   ` Takashi Iwai
@ 2012-06-27 11:11     ` Mark Brown
  2012-06-27 11:39       ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Brown @ 2012-06-27 11:11 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, mr.swami.reddy, Daniel Mack


[-- Attachment #1.1: Type: text/plain, Size: 234 bytes --]

On Wed, Jun 27, 2012 at 12:25:43PM +0200, Takashi Iwai wrote:

> Could you put it in the next pull request?
> It's not fixed in the upstream yet.

It's fixed in -next, not in for-3.5.  I guess I'll pick the change over
at some point.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
  2012-06-27 11:11     ` Mark Brown
@ 2012-06-27 11:39       ` Takashi Iwai
  2012-06-27 11:44         ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Takashi Iwai @ 2012-06-27 11:39 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, mr.swami.reddy, Daniel Mack

At Wed, 27 Jun 2012 12:11:21 +0100,
Mark Brown wrote:
> 
> On Wed, Jun 27, 2012 at 12:25:43PM +0200, Takashi Iwai wrote:
> 
> > Could you put it in the next pull request?
> > It's not fixed in the upstream yet.
> 
> It's fixed in -next, not in for-3.5.  I guess I'll pick the change over
> at some point.

Hm, OK.

Ideally, such a problem should have been fixed for 3.5 by just
removing const, and add const again once after ASoC core is changed
for 3.6.  But I've been ignoring this warning since it's certainly no
big issue.


Takashi

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

* Re: [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver
  2012-06-27 11:39       ` Takashi Iwai
@ 2012-06-27 11:44         ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2012-06-27 11:44 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, mr.swami.reddy, Daniel Mack


[-- Attachment #1.1: Type: text/plain, Size: 584 bytes --]

On Wed, Jun 27, 2012 at 01:39:52PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > It's fixed in -next, not in for-3.5.  I guess I'll pick the change over
> > at some point.

> Ideally, such a problem should have been fixed for 3.5 by just
> removing const, and add const again once after ASoC core is changed
> for 3.6.  But I've been ignoring this warning since it's certainly no
> big issue.

The fix in -next is to remove the const, it's not simply a case of
adding the const in the core as we currently fiddle with the ops structs
to add default ops (which we shouldn't do).

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2012-06-27 11:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27  7:34 [PATCH] ALSA: ASoC: Remove const attribute from lm49453's snd_soc_dai_driver Daniel Mack
2012-06-27 10:17 ` Mark Brown
2012-06-27 10:21   ` Daniel Mack
2012-06-27 10:25   ` Takashi Iwai
2012-06-27 11:11     ` Mark Brown
2012-06-27 11:39       ` Takashi Iwai
2012-06-27 11:44         ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.