projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a624f1
)
arm64: cmpxchg: Include build_bug.h instead of bug.h for BUILD_BUG
author
Will Deacon
<will.deacon@arm.com>
Mon, 19 Feb 2018 11:39:23 +0000
(11:39 +0000)
committer
Will Deacon
<will.deacon@arm.com>
Tue, 27 Mar 2018 12:14:54 +0000
(13:14 +0100)
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
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/cmpxchg.h
b/arch/arm64/include/asm/cmpxchg.h
index
ae852ad
..
bc9e07b
100644
(file)
--- a/
arch/arm64/include/asm/cmpxchg.h
+++ b/
arch/arm64/include/asm/cmpxchg.h
@@
-18,7
+18,7
@@
#ifndef __ASM_CMPXCHG_H
#define __ASM_CMPXCHG_H
-#include <linux/bug.h>
+#include <linux/bu
ild_bu
g.h>
#include <asm/atomic.h>
#include <asm/barrier.h>