[alsa-devel] [asoc:topic/ioremap 1/1] sound/soc/codecs/jz4740.c:364:2: error: implicit declaration of function 'devm_ioremap_resource'

kbuild test robot fengguang.wu at intel.com
Tue Jan 22 10:27:44 CET 2013


tree:   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/ioremap
head:   bc96ea9b07adce5ec678899ea2604bd38677938e
commit: bc96ea9b07adce5ec678899ea2604bd38677938e [1/1] ASoC: Convert to devm_ioremap_resource()
config: make ARCH=i386 allyesconfig

All error/warnings:

   sound/soc/codecs/jz4740.c: In function 'jz4740_codec_probe':
>> sound/soc/codecs/jz4740.c:364:2: error: implicit declaration of function 'devm_ioremap_resource' [-Werror=implicit-function-declaration]
   sound/soc/codecs/jz4740.c:364:7: warning: assignment makes pointer from integer without a cast [enabled by default]
   cc1: some warnings being treated as errors

vim +/devm_ioremap_resource +364 sound/soc/codecs/jz4740.c

   358		jz4740_codec = devm_kzalloc(&pdev->dev, sizeof(*jz4740_codec),
   359					    GFP_KERNEL);
   360		if (!jz4740_codec)
   361			return -ENOMEM;
   362	
   363		mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 > 364		base = devm_ioremap_resource(&pdev->dev, mem);
   365		if (IS_ERR(base))
   366			return PTR_ERR(base);
   367	

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation


More information about the Alsa-devel mailing list