arm64: cmpxchg: Include build_bug.h instead of bug.h for BUILD_BUG
authorWill Deacon <will.deacon@arm.com>
Mon, 19 Feb 2018 11:39:23 +0000 (11:39 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 12:14:54 +0000 (13:14 +0100)
commite8a2d040fee54606ff62cc1f22e14ad9b2677f15
tree22601a218574e3e92e2c3d7520ad81998137c9d2
parent8a624f145c0d40903cb73090f51797e480bd1295
arm64: cmpxchg: Include build_bug.h instead of bug.h for BUILD_BUG

Having asm/cmpxchg.h pull in linux/bug.h is problematic because this
ends up pulling in the atomic bitops which themselves may be built on
top of atomic.h and cmpxchg.h.

Instead, just include build_bug.h for the definition of BUILD_BUG.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/cmpxchg.h