direct.c:undefined reference to `arch_dma_alloc'

From: kbuild test robot
Date: Fri Jan 04 2019 - 08:01:32 EST


Hi Christoph,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 645ff1e8e704c4f33ab1fcd3c87f95cb9b6d7144
commit: 68c608345cc569bcfa1c1b2add4c00c343ecf933 swiotlb: remove dma_mark_clean
date: 3 weeks ago
config: ia64-zx1_defconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.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 68c608345cc569bcfa1c1b2add4c00c343ecf933
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64

All errors (new ones prefixed by >>):

kernel/dma/mapping.o: In function `dma_common_get_sgtable':
mapping.c:(.text+0x10d2): undefined reference to `arch_dma_coherent_to_pfn'
kernel/dma/mapping.o: In function `dma_common_mmap':
mapping.c:(.text+0x1452): undefined reference to `arch_dma_coherent_to_pfn'
kernel/dma/direct.o: In function `dma_direct_alloc':
>> direct.c:(.text+0x1162): undefined reference to `arch_dma_alloc'
kernel/dma/direct.o: In function `dma_direct_free':
>> direct.c:(.text+0x1352): undefined reference to `arch_dma_free'

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip