linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4867/4874] include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless'
@ 2017-03-25 17:19 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-03-25 17:19 UTC (permalink / raw)
  To: Andrew Morton; +Cc: kbuild-all, Linux Memory Management List, Andi Kleen

[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]

Hi Andrew,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6ec9c2f12955a217a0b7c1512fc7d889024e15b3
commit: 0bbf6111d7722a445033577e642cce85e20410bd [4867/4874] x86-atomic-move-__atomic_add_unless-out-of-line-fix
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 0bbf6111d7722a445033577e642cce85e20410bd
        # 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
   collect2: error: ld returned 1 exit status

vim +70 include/asm-generic/atomic-instrumented.h

3f4ca3d2 Dmitry Vyukov 2017-03-19  64  	return arch_atomic64_cmpxchg(v, old, new);
3f4ca3d2 Dmitry Vyukov 2017-03-19  65  }
3f4ca3d2 Dmitry Vyukov 2017-03-19  66  
3f4ca3d2 Dmitry Vyukov 2017-03-19  67  static __always_inline int __atomic_add_unless(atomic_t *v, int a, int u)
3f4ca3d2 Dmitry Vyukov 2017-03-19  68  {
02321fcd Dmitry Vyukov 2017-03-19  69  	kasan_check_write(v, sizeof(*v));
3f4ca3d2 Dmitry Vyukov 2017-03-19 @70  	return __arch_atomic_add_unless(v, a, u);
3f4ca3d2 Dmitry Vyukov 2017-03-19  71  }
3f4ca3d2 Dmitry Vyukov 2017-03-19  72  
3f4ca3d2 Dmitry Vyukov 2017-03-19  73  

:::::: The code at line 70 was first introduced by commit
:::::: 3f4ca3d25e1a770cf8bc859567fa9124c7f2cb0a asm-generic, x86: wrap atomic operations

:::::: TO: Dmitry Vyukov <dvyukov@google.com>
:::::: CC: Stephen Rothwell <sfr@canb.auug.org.au>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7721 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-25 17:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-25 17:19 [linux-next:master 4867/4874] include/asm-generic/atomic-instrumented.h:70: undefined reference to `__arch_atomic_add_unless' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox