mips64-linux-ld: direct.c:(.text.dma_direct_alloc+0x154): undefined reference to `phys_to_dma'

From: kernel test robot
Date: Tue Jan 19 2021 - 12:44:01 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e2a199f6ccdc15cf111d68d212e2fd4ce65682e
commit: 5ceda74093a5c1c3f42a02b894df031f3bbc9af1 dma-direct: rename and cleanup __phys_to_dma
date: 4 months ago
config: mips-randconfig-p001-20210119 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5ceda74093a5c1c3f42a02b894df031f3bbc9af1
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 5ceda74093a5c1c3f42a02b894df031f3bbc9af1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

mips64-linux-ld: kernel/dma/mapping.o: in function `dma_map_page_attrs':
mapping.c:(.text.dma_map_page_attrs+0xe4): undefined reference to `phys_to_dma'
mips64-linux-ld: kernel/dma/mapping.o: in function `dma_unmap_page_attrs':
mapping.c:(.text.dma_unmap_page_attrs+0x9c): undefined reference to `dma_to_phys'
mips64-linux-ld: mapping.c:(.text.dma_unmap_page_attrs+0xb0): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/mapping.o: in function `dma_sync_single_for_cpu':
mapping.c:(.text.dma_sync_single_for_cpu+0x90): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/mapping.o: in function `dma_sync_single_for_device':
mapping.c:(.text.dma_sync_single_for_device+0x90): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_to_page':
direct.c:(.text.dma_direct_to_page+0x8): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_get_required_mask':
direct.c:(.text.dma_direct_get_required_mask+0x30): undefined reference to `phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_alloc':
direct.c:(.text.dma_direct_alloc+0xa4): undefined reference to `dma_to_phys'
>> mips64-linux-ld: direct.c:(.text.dma_direct_alloc+0x154): undefined reference to `phys_to_dma'
mips64-linux-ld: direct.c:(.text.dma_direct_alloc+0x23c): undefined reference to `phys_to_dma'
mips64-linux-ld: direct.c:(.text.dma_direct_alloc+0x338): undefined reference to `phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_map_sg':
direct.c:(.text.dma_direct_map_sg+0xd0): undefined reference to `phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_mmap':
direct.c:(.text.dma_direct_mmap+0x4c): undefined reference to `dma_to_phys'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_supported':
direct.c:(.text.dma_direct_supported+0x50): undefined reference to `phys_to_dma'
mips64-linux-ld: kernel/dma/direct.o: in function `dma_direct_need_sync':
direct.c:(.text.dma_direct_need_sync+0x14): undefined reference to `dma_to_phys'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip