[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201511200245.PvuOfna4%fengguang.wu@intel.com>
Date: Fri, 20 Nov 2015 02:29:07 +0800
From: kbuild test robot <lkp@...el.com>
To: Adam Thomson <Adam.Thomson.Opensource@...semi.com>
Cc: kbuild-all@...org, Mark Brown <broonie@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>, alsa-devel@...a-project.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Support Opensource <support.opensource@...semi.com>
Subject: Re: [PATCH v3 2/2] ASoC: codecs: Add da7218 codec driver
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
Download attachment ".config.gz" of type "application/octet-stream" (51108 bytes)
Powered by blists - more mailing lists