1
0
Fork 0

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>
hifive-unleashed-5.1
Will Deacon 2018-02-19 11:39:23 +00:00
parent 8a624f145c
commit e8a2d040fe
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
#ifndef __ASM_CMPXCHG_H
#define __ASM_CMPXCHG_H
#include <linux/bug.h>
#include <linux/build_bug.h>
#include <asm/atomic.h>
#include <asm/barrier.h>