[radeon-alex:amd-staging-drm-next 107/132] sound/soc/amd/raven/acp3x-pcm-dma.c:638:22: error: implicit declaration of function 'devm_ioremap'; did you mean 'of_ioremap'?

kbuild test robot lkp at intel.com
Tue Jun 19 20:42:46 UTC 2018


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   486e4f30e2a3b7bdd2caa48d09b905a34f2f99cb
commit: 080d2114b794d5764c7ff4b4454317cdb9d24652 [107/132] ASoC: AMD: enable ACP3x drivers build
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 080d2114b794d5764c7ff4b4454317cdb9d24652
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   In file included from sound/soc/amd/raven/acp3x-pcm-dma.c:26:0:
   sound/soc/amd/raven/acp3x.h: In function 'rv_readl':
   sound/soc/amd/raven/acp3x.h:28:9: error: implicit declaration of function 'readl'; did you mean 'rv_readl'? [-Werror=implicit-function-declaration]
     return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
            ^~~~~
            rv_readl
   sound/soc/amd/raven/acp3x.h: In function 'rv_writel':
   sound/soc/amd/raven/acp3x.h:33:2: error: implicit declaration of function 'writel'; did you mean 'rv_writel'? [-Werror=implicit-function-declaration]
     writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
     ^~~~~~
     rv_writel
   sound/soc/amd/raven/acp3x-pcm-dma.c: In function 'acp3x_audio_probe':
>> sound/soc/amd/raven/acp3x-pcm-dma.c:638:22: error: implicit declaration of function 'devm_ioremap'; did you mean 'of_ioremap'? [-Werror=implicit-function-declaration]
     adata->acp3x_base = devm_ioremap(&pdev->dev, res->start,
                         ^~~~~~~~~~~~
                         of_ioremap
   sound/soc/amd/raven/acp3x-pcm-dma.c:638:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     adata->acp3x_base = devm_ioremap(&pdev->dev, res->start,
                       ^
   cc1: some warnings being treated as errors

vim +638 sound/soc/amd/raven/acp3x-pcm-dma.c

15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  616  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  617  static int acp3x_audio_probe(struct platform_device *pdev)
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  618  {
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  619  	int status;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  620  	struct resource *res;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  621  	struct i2s_dev_data *adata;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  622  	unsigned int irqflags;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  623  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  624  	if (pdev->dev.platform_data == NULL) {
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  625  		dev_err(&pdev->dev, "platform_data not retrieved\n");
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  626  		return -ENODEV;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  627  	}
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  628  	irqflags = *((unsigned int *)(pdev->dev.platform_data));
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  629  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  630  	adata = devm_kzalloc(&pdev->dev, sizeof(struct i2s_dev_data),
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  631  				GFP_KERNEL);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  632  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  633  	if (!res) {
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  634  		dev_err(&pdev->dev, "IORESOURCE_IRQ FAILED\n");
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  635  			return -ENODEV;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  636  	}
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  637  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29 @638  	adata->acp3x_base = devm_ioremap(&pdev->dev, res->start,
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  639  			resource_size(res));
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  640  
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  641  	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  642  	if (!res) {
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  643  		dev_err(&pdev->dev, "IORESOURCE_IRQ FAILED\n");
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  644  		return -ENODEV;
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  645  	}
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  646  
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  647  	adata->i2s_irq = res->start;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  648  	adata->play_stream = NULL;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  649  	adata->capture_stream = NULL;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  650  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  651  	dev_set_drvdata(&pdev->dev, adata);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  652  	/* Initialize ACP */
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  653  	status = acp3x_init(adata->acp3x_base);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  654  	if (status)
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  655  		return -ENODEV;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  656  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  657  	status = snd_soc_register_platform(&pdev->dev, &acp3x_asoc_platform);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  658  	if (status != 0) {
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  659  		dev_err(&pdev->dev, "Fail to register ALSA platform device\n");
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  660  		goto dev_err;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  661  	}
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  662  
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  663  	status = devm_snd_soc_register_component(&pdev->dev,
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  664  			&acp3x_i2s_component, &acp3x_i2s_dai_driver, 1);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  665  	if (status != 0) {
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  666  		dev_err(&pdev->dev, "Fail to register acp i2s dai\n");
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  667  		snd_soc_unregister_platform(&pdev->dev);
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  668  		goto dev_err;
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  669  	}
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  670  
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  671  	status = devm_request_irq(&pdev->dev, adata->i2s_irq, i2s_irq_handler,
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  672  					irqflags, "ACP3x_I2S_IRQ", adata);
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  673  	if (status) {
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  674  		dev_err(&pdev->dev, "ACP3x I2S IRQ request failed\n");
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  675  		snd_soc_unregister_platform(&pdev->dev);
446b0f10 Maruthi Srinivas Bayyavarapu 2017-03-30  676  		snd_soc_unregister_component(&pdev->dev);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  677  		goto dev_err;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  678  	}
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  679  
33698d0f Maruthi Srinivas Bayyavarapu 2017-03-30  680  	pm_runtime_set_autosuspend_delay(&pdev->dev, 10000);
33698d0f Maruthi Srinivas Bayyavarapu 2017-03-30  681  	pm_runtime_use_autosuspend(&pdev->dev);
33698d0f Maruthi Srinivas Bayyavarapu 2017-03-30  682  	pm_runtime_enable(&pdev->dev);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  683  	return 0;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  684  dev_err:
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  685  	status = acp3x_deinit(adata->acp3x_base);
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  686  	if (status)
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  687  		dev_err(&pdev->dev, "ACP de-init failed\n");
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  688  	else
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  689  		dev_info(&pdev->dev, "ACP de-initialized\n");
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  690  	/*ignore device status and return driver probe error*/
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  691  	return -ENODEV;
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  692  }
15d47ef0 Maruthi Srinivas Bayyavarapu 2017-03-29  693  

:::::: The code at line 638 was first introduced by commit
:::::: 15d47ef0152451e6c6afb40297571a678ac04843 ASoC: AMD: add ACP3x PCM platform driver

:::::: TO: Maruthi Srinivas Bayyavarapu <Maruthi.Bayyavarapu at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 53274 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180620/2a9519f2/attachment-0001.gz>


More information about the dri-devel mailing list