Skip to content
Commit e8a2d040 authored by Will Deacon's avatar Will Deacon
Browse files

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: default avatarWill Deacon <will.deacon@arm.com>
parent 8a624f14
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment