[radeon-alex:amd-staging-drm-next 85/495] 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 fengguang.wu at intel.com
Sat Feb 24 03:36:04 UTC 2018


Hi Maruthi,

FYI, the error/warning still remains.

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   82beba2883b2556ce896b08cb4dde76383192484
commit: 4ab7d004f9ff2e877caa267887360e1804b4edcf [85/495] 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 4ab7d004f9ff2e877caa267887360e1804b4edcf
        # save the attached .config to linux build tree
        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 'vread'? [-Werror=implicit-function-declaration]
     return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
            ^~~~~
            vread
   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 'vwrite'? [-Werror=implicit-function-declaration]
     writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
     ^~~~~~
     vwrite
   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

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

:::::: The code at line 638 was first introduced by commit
:::::: 023ab7b388d17d401944313c754a446ec0bc7037 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: 53081 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180224/6a98a33c/attachment-0001.gz>


More information about the dri-devel mailing list