diff options
author | Arun Sharma <asharma@fb.com> | 2011-07-26 16:09:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 16:49:47 -0700 |
commit | 191cc48150bb45d0abcf7c80829970821091e207 (patch) | |
tree | f6a20544d373a632e1df716414e069b69cf1f704 | |
parent | 0d68b165889db45bdda057aa9bf8a2cf40868ef5 (diff) | |
download | linux-crypto-191cc48150bb45d0abcf7c80829970821091e207.tar.gz linux-crypto-191cc48150bb45d0abcf7c80829970821091e207.zip |
atomic: use <linux/atomic.h>
This allows us to move duplicated code in <asm/atomic.h>
(atomic_inc_not_zero() for now) to <linux/atomic.h>
Signed-off-by: Arun Sharma <asharma@fb.com>
Reviewed-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Miller <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | crypto/af_alg.c | 2 | ||||
-rw-r--r-- | crypto/proc.c | 2 | ||||
-rw-r--r-- | crypto/rng.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 940d70cb..ac33d5f3 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -12,7 +12,7 @@ * */ -#include <asm/atomic.h> +#include <linux/atomic.h> #include <crypto/if_alg.h> #include <linux/crypto.h> #include <linux/init.h> diff --git a/crypto/proc.c b/crypto/proc.c index 58fef67d..38086978 100644 --- a/crypto/proc.c +++ b/crypto/proc.c @@ -13,7 +13,7 @@ * */ -#include <asm/atomic.h> +#include <linux/atomic.h> #include <linux/init.h> #include <linux/crypto.h> #include <linux/rwsem.h> diff --git a/crypto/rng.c b/crypto/rng.c index f93cb531..45229ae7 100644 --- a/crypto/rng.c +++ b/crypto/rng.c @@ -12,7 +12,7 @@ * */ -#include <asm/atomic.h> +#include <linux/atomic.h> #include <crypto/internal/rng.h> #include <linux/err.h> #include <linux/module.h> |