Skip to content

Commit b22d73c

Browse files
wildea01Ingo Molnar
authored andcommitted
locking/atomics/openrisc: Don't pull in all of <linux/bitops.h> in <asm/cmpxchg.h>
The openrisc implementation of <asm/cmpxchg.h> pulls in <linux/bitops.h>, so that it can refer to BITS_PER_BYTE. It also transitively relies on this pulling in <linux/compiler.h> for READ_ONCE(). Replace the #include with <linux/bits.h> and <linux/compiler.h>. Signed-off-by: Will Deacon <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 8bd9cb5 commit b22d73c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/openrisc/include/asm/cmpxchg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
#ifndef __ASM_OPENRISC_CMPXCHG_H
1717
#define __ASM_OPENRISC_CMPXCHG_H
1818

19+
#include <linux/bits.h>
20+
#include <linux/compiler.h>
1921
#include <linux/types.h>
20-
#include <linux/bitops.h>
2122

2223
#define __HAVE_ARCH_CMPXCHG 1
2324

0 commit comments

Comments
 (0)