[radeon-alex:amd-staging-4.11 954/1085] sound/soc//amd/raven/acp3x-pcm-dma.c:246:3: error: implicit declaration of function 'page_to_phys'
kbuild test robot
fengguang.wu at intel.com
Mon May 15 01:40:11 UTC 2017
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-4.11
head: c285c73f2213f503a93aa142fff186e160b4a371
commit: abb115931046498039111820de7b6b578c4cce8d [954/1085] ASoC: AMD: enable ACP3x drivers build
config: tile-allmodconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 4.6.2
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=tile
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:2: error: implicit declaration of function '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'
sound/soc//amd/raven/acp3x-pcm-dma.c: In function 'config_acp3x_dma':
>> sound/soc//amd/raven/acp3x-pcm-dma.c:246:3: error: implicit declaration of function 'page_to_phys'
sound/soc//amd/raven/acp3x-pcm-dma.c: In function 'acp3x_audio_probe':
sound/soc//amd/raven/acp3x-pcm-dma.c:638:2: error: implicit declaration of function 'devm_ioremap'
sound/soc//amd/raven/acp3x-pcm-dma.c:638:20: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
vim +/page_to_phys +246 sound/soc//amd/raven/acp3x-pcm-dma.c
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 230 /* 8 scratch registers used to map one 64 bit address.
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 231 * For 2 pages (4096 * 2 bytes), it will be 16 registers.
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 232 */
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 233 if (direction == SNDRV_PCM_STREAM_PLAYBACK)
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 234 val = 0;
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 235 else
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 236 val = 16;
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 237
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 238 /* Group Enable */
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 239 rv_writel(ACP_SRAM_PTE_OFFSET | BIT(31), rtd->acp3x_base +
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 240 mmACPAXI2AXI_ATU_BASE_ADDR_GRP_1);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 241 rv_writel(PAGE_SIZE_4K_ENABLE, rtd->acp3x_base +
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 242 mmACPAXI2AXI_ATU_PAGE_SIZE_GRP_1);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 243
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 244 for (page_idx = 0; page_idx < rtd->num_pages; page_idx++) {
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 245 /* Load the low address of page int ACP SRAM through SRBM */
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 @246 addr = page_to_phys(pg);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 247 low = lower_32_bits(addr);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 248 high = upper_32_bits(addr);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 249
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 250 rv_writel(low, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 251 high |= BIT(31);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 252 rv_writel(high, rtd->acp3x_base + mmACP_SCRATCH_REG_0 + val
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 253 + 4);
947d2f9f Maruthi Srinivas Bayyavarapu 2017-03-29 254 /* Move to next physically contiguos page */
:::::: The code at line 246 was first introduced by commit
:::::: 947d2f9fc0cb6379ede8593e3ca0107f87fc4ce9 ASoC: AMD: add ACP3x PCM driver DMA ops
:::::: 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: 48061 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170515/37e444c1/attachment-0001.gz>
More information about the dri-devel
mailing list