Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34484277 authored by David Howells's avatar David Howells
Browse files

Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h



Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h as all arch
files that #include the former also #include the latter.  See:

	grep -rl asm-generic/cmpxchg-local[.]h arch/ | sort > b
	grep -rl asm-generic/cmpxchg[.]h arch/ | sort > a
	comm a b

This simplifies the disintegration of asm-generic/system.h for arches that
don't have their own.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
parent f9aa7e18
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
#ifndef __ASM_GENERIC_ATOMIC_H
#define __ASM_GENERIC_ATOMIC_H

#include <asm/cmpxchg.h>

#ifdef CONFIG_SMP
/* Force people to define core atomics */
# if !defined(atomic_add_return) || !defined(atomic_sub_return) || \
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@
#error "Cannot use generic cmpxchg on SMP"
#endif

#include <asm-generic/cmpxchg-local.h>

/*
 * Atomic compare and exchange.
 *
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@
#include <linux/types.h>
#include <linux/irqflags.h>

#include <asm/cmpxchg-local.h>
#include <asm/cmpxchg.h>

struct task_struct;