[alsa-devel] [asoc:for-5.5 122/122] sound/soc/codecs/tas2562.c:195:14: sparse: sparse: restricted snd_pcm_format_t degrades to integer

Mark Brown broonie at kernel.org
Mon Oct 21 21:19:13 CEST 2019


On Fri, Oct 11, 2019 at 07:13:38AM -0500, Dan Murphy wrote:
> On 10/10/19 11:41 AM, kbuild test robot wrote:

> >     190	static int tas2562_set_bitwidth(struct tas2562_data *tas2562, int bitwidth)

> The only fix I can see here is to change bitwidth to snd_pcm_format_t as

> But that still gives this sparse warning.  The way the code below is
> written  to be consistent throughout the drivers so are these warnings false
> positives?

I think so, yes.  Or at least I can't see any sensible way to stop this
anyway.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20191021/6a8e7b05/attachment.sig>


More information about the Alsa-devel mailing list