[radeon-alex:raven 954/1060] sound/soc/amd/raven/acp3x.h:28:9: error: implicit declaration of function 'readl'

kbuild test robot fengguang.wu at intel.com
Thu May 11 00:54:52 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git raven
head:   c6ee08eda872bc7ac60ed0ba82a5d85e696a894c
commit: abb115931046498039111820de7b6b578c4cce8d [954/1060] ASoC: AMD: enable ACP3x drivers build
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout abb115931046498039111820de7b6b578c4cce8d
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All error/warnings (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' [-Werror=implicit-function-declaration]
     return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
            ^~~~~
   sound/soc/amd/raven/acp3x.h: In function 'rv_writel':
>> sound/soc/amd/raven/acp3x.h:33:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
     writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
     ^~~~~~
   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' [-Werror=implicit-function-declaration]
     adata->acp3x_base = devm_ioremap(&pdev->dev, res->start,
                         ^~~~~~~~~~~~
>> 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 +/readl +28 sound/soc/amd/raven/acp3x.h

947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29  22  
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29  23  #define MAX_BUFFER (PLAYBACK_MAX_PERIOD_SIZE * PLAYBACK_MAX_NUM_PERIODS)
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29  24  #define MIN_BUFFER MAX_BUFFER
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  25  
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  26  static inline u32 rv_readl(void __iomem *base_addr)
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  27  {
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27 @28  	return readl(base_addr - ACP3x_PHY_BASE_ADDRESS);
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  29  }
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  30  
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  31  static inline void rv_writel(u32 val, void __iomem *base_addr)
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  32  {
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27 @33  	writel(val, base_addr - ACP3x_PHY_BASE_ADDRESS);
07031657 Maruthi Srinivas Bayyavarapu 2017-03-27  34  }

:::::: The code at line 28 was first introduced by commit
:::::: 0703165797e322704886f04195e0a832c937b840 ASoC: AMD: add ACP3.0 PCI 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: 61352 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170511/96446794/attachment-0001.gz>


More information about the dri-devel mailing list