stm32-usart.c:undefined reference to `bad_dma_ops'

From: kbuild test robot
Date: Thu Oct 27 2016 - 01:45:27 EST


Hi Alexandre,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9fe68cad6e74967b88d0c6aeca7d9cd6b6e91942
commit: 3489187204eb75e5635d8836babfd0a18be613f4 serial: stm32: adding dma support
date: 5 weeks ago
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3489187204eb75e5635d8836babfd0a18be613f4
# save the attached .config to linux build tree
make.cross ARCH=m32r

All errors (new ones prefixed by >>):

drivers/built-in.o: In function `stm32_serial_remove':
>> stm32-usart.c:(.text+0xdbf3c): undefined reference to `bad_dma_ops'
stm32-usart.c:(.text+0xdbf44): undefined reference to `bad_dma_ops'
stm32-usart.c:(.text+0xdbfe0): undefined reference to `bad_dma_ops'
stm32-usart.c:(.text+0xdbfe8): undefined reference to `bad_dma_ops'
sound/built-in.o: In function `snd_pcm_lib_default_mmap':
(.text+0xfc10): undefined reference to `bad_dma_ops'
sound/built-in.o:(.text+0xfc14): more undefined references to `bad_dma_ops' follow
sound/built-in.o: In function `snd_pcm_lib_default_mmap':
(.text+0xfc64): undefined reference to `dma_common_mmap'
sound/built-in.o: In function `snd_pcm_lib_default_mmap':
(.text+0xfc64): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `dma_common_mmap'
sound/built-in.o: In function `cygnus_pcm_preallocate_dma_buffer':
cygnus-pcm.c:(.text+0x10fff0): undefined reference to `bad_dma_ops'
cygnus-pcm.c:(.text+0x10fff4): undefined reference to `bad_dma_ops'
cygnus-pcm.c:(.text+0x110028): undefined reference to `bad_dma_ops'
sound/built-in.o: In function `cygnus_dma_free_dma_buffers':
cygnus-pcm.c:(.text+0x110128): undefined reference to `bad_dma_ops'
cygnus-pcm.c:(.text+0x110130): undefined reference to `bad_dma_ops'
sound/built-in.o:cygnus-pcm.c:(.text+0x1101c8): more undefined references to `bad_dma_ops' follow

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

Attachment: .config.gz
Description: application/gzip