Re: [PATCH v3 2/2] ASoC: codecs: Add da7218 codec driver

From: kbuild test robot
Date: Thu Nov 19 2015 - 13:30:27 EST


Hi Adam,

[auto build test WARNING on: asoc/for-next]
[also build test WARNING on: v4.4-rc1 next-20151119]

url: https://github.com/0day-ci/linux/commits/Adam-Thomson/ASoC-da7218-Add-bindings-documentation-for-DA7218-audio-codec/20151120-014315
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All warnings (new ones prefixed by >>):

sound/soc/codecs/da7218.c: In function 'da7218_of_get_id':
>> sound/soc/codecs/da7218.c:2261:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return (int) id->data;
^

vim +2261 sound/soc/codecs/da7218.c

2245 /*
2246 * DT
2247 */
2248
2249 static const struct of_device_id da7218_of_match[] = {
2250 { .compatible = "dlg,da7217", .data = (void *) DA7217_DEV_ID },
2251 { .compatible = "dlg,da7218", .data = (void *) DA7218_DEV_ID },
2252 { }
2253 };
2254 MODULE_DEVICE_TABLE(of, da7218_of_match);
2255
2256 static inline int da7218_of_get_id(struct device *dev)
2257 {
2258 const struct of_device_id *id = of_match_device(da7218_of_match, dev);
2259
2260 if (id)
> 2261 return (int) id->data;
2262 else
2263 return -EINVAL;
2264 }
2265
2266 static enum da7218_micbias_voltage
2267 da7218_of_micbias_lvl(struct snd_soc_codec *codec, u32 val)
2268 {
2269 switch (val) {

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data