[alsa-devel] [asoc:topic/simple 1/1] sound/soc/soc-core.c:3306:47: sparse: incorrect type in argument 1 (different base types)
kbuild test robot
fengguang.wu at intel.com
Wed Sep 16 23:03:59 CEST 2015
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/simple
head: 6131084a0bc966107021d8c89489f9cd1663b902
commit: 6131084a0bc966107021d8c89489f9cd1663b902 [1/1] ASoC: simple-card: Add tdm slot mask support to simple-card
reproduce:
# apt-get install sparse
git checkout 6131084a0bc966107021d8c89489f9cd1663b902
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> sound/soc/soc-core.c:3306:47: sparse: incorrect type in argument 1 (different base types)
sound/soc/soc-core.c:3306:47: expected restricted __be32 const [usertype] *p
sound/soc/soc-core.c:3306:47: got unsigned int const [usertype] *
vim +3306 sound/soc/soc-core.c
3290 return 0;
3291 }
3292 EXPORT_SYMBOL_GPL(snd_soc_of_parse_audio_simple_widgets);
3293
3294 static int snd_soc_of_get_slot_mask(struct device_node *np,
3295 const char *prop_name,
3296 unsigned int *mask)
3297 {
3298 u32 val;
3299 const u32 *of_slot_mask = of_get_property(np, prop_name, &val);
3300 int i;
3301
3302 if (!of_slot_mask)
3303 return 0;
3304 val /= sizeof(u32);
3305 for (i = 0; i < val; i++)
> 3306 if (be32_to_cpup(&of_slot_mask[i]))
3307 *mask |= (1 << i);
3308
3309 return val;
3310 }
3311
3312 int snd_soc_of_parse_tdm_slot(struct device_node *np,
3313 unsigned int *tx_mask,
3314 unsigned int *rx_mask,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
More information about the Alsa-devel
mailing list