Re: [PATCH] ASoC: codecs: use SNDRV_PCM_FMTBIT_* for format bitmask

From: Mark Brown
Date: Tue May 26 2015 - 09:09:40 EST


On Tue, May 26, 2015 at 07:29:57AM +0200, Takashi Iwai wrote:
> Maciej S. Szmigiero wrote:

> > Found out by sparse on 0-day kernel tester.

> Wow, that made me wonder how these drivers could actually work.

AFAICT the bits were being set by being ored in from the sequential
values.

> BTW, how did you detect it? Any static analyzer like sparse or
> smatch? sparse didn't detect it at the last time I tried, IIRC...

Commit log says sparse.

Attachment: signature.asc
Description: Digital signature