All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:locking/task_work 28/30] arch/x86/include/asm/atomic.h:204:2: error: implicit declaration of function 'try_cmpxchg'
@ 2020-02-21 18:39 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-02-21 18:39 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/task_work
head:   cb76f7aa8b6fd6aa66339ab69019d46696c0987f
commit: 5e548a1b2395f2cb70870aa98e96d00867ac18ec [28/30] asm-generic/atomic: Add try_cmpxchg() fallbacks
config: x86_64-randconfig-s2-20200222 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
        git checkout 5e548a1b2395f2cb70870aa98e96d00867ac18ec
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/atomic.h:7:0,
                    from include/linux/debug_locks.h:6,
                    from include/linux/lockdep.h:28,
                    from include/linux/spinlock_types.h:18,
                    from kernel/bounds.c:14:
   arch/x86/include/asm/atomic.h: In function 'arch_atomic_try_cmpxchg':
>> arch/x86/include/asm/atomic.h:204:2: error: implicit declaration of function 'try_cmpxchg' [-Werror=implicit-function-declaration]
     return try_cmpxchg(&v->counter, old, new);
     ^
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:101: kernel/bounds.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1112: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:179: sub-make] Error 2
   24 real  9 user  10 sys  79.56% cpu 	make prepare

vim +/try_cmpxchg +204 arch/x86/include/asm/atomic.h

5abbbbf0b0cd4a Brian Gerst    2010-01-07  201  
8bf705d130396e Dmitry Vyukov  2018-01-29  202  static __always_inline bool arch_atomic_try_cmpxchg(atomic_t *v, int *old, int new)
a9ebf306f52c75 Peter Zijlstra 2017-02-01  203  {
a9ebf306f52c75 Peter Zijlstra 2017-02-01 @204  	return try_cmpxchg(&v->counter, old, new);
a9ebf306f52c75 Peter Zijlstra 2017-02-01  205  }
58468425bac1b7 Peter Zijlstra 2020-01-24  206  #define arch_atomic_try_cmpxchg arch_atomic_try_cmpxchg
a9ebf306f52c75 Peter Zijlstra 2017-02-01  207  

:::::: The code at line 204 was first introduced by commit
:::::: a9ebf306f52c756c4f9e50ee9a60cd6389d71344 locking/atomic: Introduce atomic_try_cmpxchg()

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

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

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

only message in thread, other threads:[~2020-02-21 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 18:39 [peterz-queue:locking/task_work 28/30] arch/x86/include/asm/atomic.h:204:2: error: implicit declaration of function 'try_cmpxchg' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.