]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/headers: Don't include asm/processor.h in asm/atomic.h
authorAndi Kleen <ak@linux.intel.com>
Wed, 2 Dec 2015 01:00:57 +0000 (17:00 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 22 May 2019 22:15:07 +0000 (23:15 +0100)
commit767f5325846f6ded91e248537d4a3e22f7b3d40f
treefd9297b78d5807b5aa05ec6c4cb9c6e7a89218a7
parent9bad4b03985d60d2f2e064d5168db409c3ce50dc
x86/headers: Don't include asm/processor.h in asm/atomic.h

commit 153a4334c439cfb62e1d31cee0c790ba4157813d upstream.

asm/atomic.h doesn't really need asm/processor.h anymore. Everything
it uses has moved to other header files. So remove that include.

processor.h is a nasty header that includes lots of
other headers and makes it prone to include loops. Removing the
include here makes asm/atomic.h a "leaf" header that can
be safely included in most other headers.

The only fallout is in the lib/atomic tester which relied on
this implicit include. Give it an explicit include.
(the include is in ifdef because the user is also in ifdef)

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: rostedt@goodmis.org
Link: http://lkml.kernel.org/r/1449018060-1742-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
[bwh: Backported to 3.16 to avoid a dependency loop; adjusted context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/include/asm/atomic.h
arch/x86/include/asm/atomic64_32.h
lib/atomic64_test.c