• L
    ASoC: Intel: Fix sparse warnings for firmware loader · 7bcd8487
    Liam Girdwood 提交于
    Sparse gives us the following warnings 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?
    
    and
    
      CC [M]  sound/soc/intel/sst-dsp.o
    sound/soc/intel/sst-dsp-priv.h:271:53: warning: incorrect type in argument 3 (different address spaces)
    sound/soc/intel/sst-dsp-priv.h:271:53:    expected void *src
    sound/soc/intel/sst-dsp-priv.h:271:53:    got void [noderef] <asn:2>*
    sound/soc/intel/sst-dsp-priv.h:271:53: warning: incorrect type in argument 3 (different address spaces)
    sound/soc/intel/sst-dsp-priv.h:271:53:    expected void *src
    sound/soc/intel/sst-dsp-priv.h:271:53:    got void [noderef] <asn:2>*
    sound/soc/intel/sst-dsp-priv.h:271:53: warning: incorrect type in argument 3 (different address spaces)
    sound/soc/intel/sst-dsp-priv.h:271:53:    expected void *src
    sound/soc/intel/sst-dsp-priv.h:271:53:    got void [noderef] <asn:2>*
    
    This patch removes these warnings
    Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
    Signed-off-by: NMark Brown <broonie@linaro.org>
    7bcd8487
sst-firmware.c 14.5 KB