[alsa-devel] [PATCH 4/5] ASoC: tegra: Use NULL instead of 0 for pointers

Sachin Kamat sachin.kamat at linaro.org
Tue Jan 22 06:01:09 CET 2013

On 21 January 2013 22:45, Stephen Warren <swarren at wwwdotorg.org> wrote:
> On 01/21/2013 02:29 AM, Sachin Kamat wrote:
>> Fixes the following sparse warnings:
>> sound/soc/tegra/tegra30_ahub.c:583:16: warning:
>> Using plain integer as NULL pointer
>> sound/soc/tegra/tegra30_ahub.c:600:16: warning:
>> Using plain integer as NULL pointer
> Out of curiosity, which compiler is this with; I've never seen this warning.

This is actually a sparse warning which you can see if you build the
kernel with C=1 (or C=2) option as below:

  make C=1   [targets] Check all c source with $CHECK (sparse by default)
  make C=2   [targets] Force check of all c source with $CHECK

With warm regards,

More information about the Alsa-devel mailing list