Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: Fix sparse warnings for firmware loader.
@ 2014-02-19 11:00 Liam Girdwood
  2014-02-19 11:06 ` Liam Girdwood
  0 siblings, 1 reply; 3+ messages in thread
From: Liam Girdwood @ 2014-02-19 11:00 UTC (permalink / raw)
  To: Mark Brown; +Cc: Takashi Iwai, Liam Girdwood, alsa-devel

Sparse gives us the following warning on sst-firmware.c

  CHECK   sound/soc/intel/sst-firmware.c
sound/soc/intel/sst-firmware.c:39:34: warning: incorrect type in argument 1 (different address spaces)
sound/soc/intel/sst-firmware.c:39:34:    expected void volatile [noderef] <asn:2>*dst
sound/soc/intel/sst-firmware.c:39:34:    got void *
sound/soc/intel/sst-firmware.c:417:36: warning: incorrect type in argument 1 (different address spaces)
sound/soc/intel/sst-firmware.c:417:36:    expected void *dest
sound/soc/intel/sst-firmware.c:417:36:    got void [noderef] <asn:2>*
sound/soc/intel/sst-firmware.c:430:5: warning: symbol 'sst_block_module_remove' was not declared. Should it be static?

This patch removes this warning.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
 sound/soc/intel/sst-firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index 31cd154..dee7eb5 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -30,7 +30,7 @@
 #include "sst-dsp.h"
 #include "sst-dsp-priv.h"
 
-static void sst_memcpy32(void *dest, void *src, u32 bytes)
+static void sst_memcpy32(volatile void __iomem *dest, void *src, u32 bytes)
 {
 	u32 i;
 
-- 
1.8.3.2

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

* Re: [PATCH] ASoC: Intel: Fix sparse warnings for firmware loader.
  2014-02-19 11:00 [PATCH] ASoC: Intel: Fix sparse warnings for firmware loader Liam Girdwood
@ 2014-02-19 11:06 ` Liam Girdwood
  2014-02-19 11:10   ` Liam Girdwood
  0 siblings, 1 reply; 3+ messages in thread
From: Liam Girdwood @ 2014-02-19 11:06 UTC (permalink / raw)
  To: Mark Brown; +Cc: Takashi Iwai, alsa-devel

On Wed, 2014-02-19 at 11:00 +0000, Liam Girdwood wrote:
> Sparse gives us the following warning on sst-firmware.c
> 
>   CHECK   sound/soc/intel/sst-firmware.c
> sound/soc/intel/sst-firmware.c:39:34: warning: incorrect type in argument 1 (different address spaces)
> sound/soc/intel/sst-firmware.c:39:34:    expected void volatile [noderef] <asn:2>*dst
> sound/soc/intel/sst-firmware.c:39:34:    got void *
> sound/soc/intel/sst-firmware.c:417:36: warning: incorrect type in argument 1 (different address spaces)
> sound/soc/intel/sst-firmware.c:417:36:    expected void *dest
> sound/soc/intel/sst-firmware.c:417:36:    got void [noderef] <asn:2>*
> sound/soc/intel/sst-firmware.c:430:5: warning: symbol 'sst_block_module_remove' was not declared. Should it be static?
> 

Btw, the last warning appears to be a false positive as
sst_block_module_remove is exported as GPL symbol.

Liam

> This patch removes this warning.
> 
> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> ---
>  sound/soc/intel/sst-firmware.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
> index 31cd154..dee7eb5 100644
> --- a/sound/soc/intel/sst-firmware.c
> +++ b/sound/soc/intel/sst-firmware.c
> @@ -30,7 +30,7 @@
>  #include "sst-dsp.h"
>  #include "sst-dsp-priv.h"
>  
> -static void sst_memcpy32(void *dest, void *src, u32 bytes)
> +static void sst_memcpy32(volatile void __iomem *dest, void *src, u32 bytes)
>  {
>  	u32 i;
>  

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

* Re: [PATCH] ASoC: Intel: Fix sparse warnings for firmware loader.
  2014-02-19 11:06 ` Liam Girdwood
@ 2014-02-19 11:10   ` Liam Girdwood
  0 siblings, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2014-02-19 11:10 UTC (permalink / raw)
  To: Mark Brown; +Cc: Takashi Iwai, alsa-devel

On Wed, 2014-02-19 at 11:06 +0000, Liam Girdwood wrote:
> On Wed, 2014-02-19 at 11:00 +0000, Liam Girdwood wrote:
> > Sparse gives us the following warning on sst-firmware.c
> > 
> >   CHECK   sound/soc/intel/sst-firmware.c
> > sound/soc/intel/sst-firmware.c:39:34: warning: incorrect type in argument 1 (different address spaces)
> > sound/soc/intel/sst-firmware.c:39:34:    expected void volatile [noderef] <asn:2>*dst
> > sound/soc/intel/sst-firmware.c:39:34:    got void *
> > sound/soc/intel/sst-firmware.c:417:36: warning: incorrect type in argument 1 (different address spaces)
> > sound/soc/intel/sst-firmware.c:417:36:    expected void *dest
> > sound/soc/intel/sst-firmware.c:417:36:    got void [noderef] <asn:2>*
> > sound/soc/intel/sst-firmware.c:430:5: warning: symbol 'sst_block_module_remove' was not declared. Should it be static?
> > 
> 
> Btw, the last warning appears to be a false positive as
> sst_block_module_remove is exported as GPL symbol.
> 

Ignore me. Sorry for the noise, I shouldn't send patches and be on calls
at the same time ;)

I'll resend fixes for both.

Liam

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

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

end of thread, other threads:[~2014-02-19 11:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 11:00 [PATCH] ASoC: Intel: Fix sparse warnings for firmware loader Liam Girdwood
2014-02-19 11:06 ` Liam Girdwood
2014-02-19 11:10   ` Liam Girdwood

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