linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm] "x86/atomic: move __arch_atomic_add_unless out of line" build error
@ 2017-03-16  4:47 Sergey Senozhatsky
  2017-03-16  8:27 ` Dmitry Vyukov
  0 siblings, 1 reply; 5+ messages in thread
From: Sergey Senozhatsky @ 2017-03-16  4:47 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Dmitry Vyukov, Ingo Molnar, Thomas Gleixner, H. Peter Anvin,
	Andrew Morton, linux-mm, x86, linux-kernel

Hello,

commit 4f86a82ff7df ("x86/atomic: move __arch_atomic_add_unless out of line")
moved __arch_atomic_add_unless() out atomic.h and new KASAN atomic
instrumentation [1] can't see it anymore


In file included from ./arch/x86/include/asm/atomic.h:257:0,
                 from ./include/linux/atomic.h:4,
                 from ./include/asm-generic/qspinlock_types.h:28,
                 from ./arch/x86/include/asm/spinlock_types.h:26,
                 from ./include/linux/spinlock_types.h:13,
                 from kernel/bounds.c:13:
./include/asm-generic/atomic-instrumented.h: In function a??__atomic_add_unlessa??:
./include/asm-generic/atomic-instrumented.h:70:9: error: implicit declaration of function a??__arch_atomic_add_unlessa?? [-Werror=implicit-function-declaration]
  return __arch_atomic_add_unless(v, a, u);
         ^~~~~~~~~~~~~~~~~~~~~~~~


so we need a declaration of __arch_atomic_add_unless() in arch/x86/include/asm/atomic.h


[1] lkml.kernel.org/r/7e450175a324bf93c602909c711bc34715d8e8f2.1489519233.git.dvyukov@google.com

	-ss

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-16 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-16  4:47 [mmotm] "x86/atomic: move __arch_atomic_add_unless out of line" build error Sergey Senozhatsky
2017-03-16  8:27 ` Dmitry Vyukov
2017-03-16 16:27   ` Andi Kleen
2017-03-16 16:41   ` Andi Kleen
2017-03-16 18:45     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).