[mmotm:master 198/211] lib/dma-mapping.c:11: undefined reference to `bad_dma_ops'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   8276ddb3c638602509386f1a05f75326dbf5ce09
commit: fcf58ec2015f30ac80f69138843007384d6aefc1 [198/211] include/linux/dma-mapping.h: uninline dma_alloc/free_attrs
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout fcf58ec2015f30ac80f69138843007384d6aefc1
        # save the attached .config to linux build tree
        make ARCH=um SUBARCH=x86_64

All errors (new ones prefixed by >>):

   kernel/built-in.o: In function `__atomic_add_unless':
   include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless'
   include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless'
   include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless'
   include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless'
   include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless'
   mm/built-in.o:include/asm-generic/atomic-instrumented.h:70: more undefined references to `__arch_atomic_add_unless' follow
   lib/lib.a(dma-mapping.o): In function `dma_alloc_attrs':
>> lib/dma-mapping.c:11: undefined reference to `bad_dma_ops'
   lib/lib.a(dma-mapping.o): In function `dma_free_attrs':
   lib/dma-mapping.c:34: undefined reference to `bad_dma_ops'
   lib/dma-mapping.c:40: undefined reference to `bad_dma_ops'
   collect2: error: ld returned 1 exit status

vim +11 lib/dma-mapping.c

     5			      dma_addr_t *dma_handle, gfp_t flag,
     6			      unsigned long attrs)
     7	{
     8		const struct dma_map_ops *ops = get_dma_ops(dev);
     9		void *cpu_addr;
    10	
  > 11		BUG_ON(!ops);
    12	
    13		if (dma_alloc_from_coherent(dev, size, dma_handle, &cpu_addr))
    14			return cpu_addr;

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux