diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 20:04:59 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 14:14:58 +0100 |
commit | 05c46db4d7d51af969e09f9f1adbff66ee2e84b4 (patch) | |
tree | ade36b7da93e8e297a40312cd5047196ab8dccd5 /arch/um/include | |
parent | dd768c56da44f6c06486da3b33b41e9c13e985c5 (diff) | |
download | op-kernel-dev-05c46db4d7d51af969e09f9f1adbff66ee2e84b4.zip op-kernel-dev-05c46db4d7d51af969e09f9f1adbff66ee2e84b4.tar.gz |
um: take userland definition of barrier() to user.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/shared/process.h | 3 | ||||
-rw-r--r-- | arch/um/include/shared/user.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/um/include/shared/process.h b/arch/um/include/shared/process.h index bb873a5..2821530 100644 --- a/arch/um/include/shared/process.h +++ b/arch/um/include/shared/process.h @@ -8,9 +8,6 @@ #include <signal.h> -/* Copied from linux/compiler-gcc.h since we can't include it directly */ -#define barrier() __asm__ __volatile__("": : :"memory") - extern void sig_handler(int sig, struct sigcontext *sc); extern void alarm_handler(int sig, struct sigcontext *sc); diff --git a/arch/um/include/shared/user.h b/arch/um/include/shared/user.h index 58c0581..4fa82c0 100644 --- a/arch/um/include/shared/user.h +++ b/arch/um/include/shared/user.h @@ -40,4 +40,7 @@ extern int in_aton(char *str); extern size_t strlcpy(char *, const char *, size_t); extern size_t strlcat(char *, const char *, size_t); +/* Copied from linux/compiler-gcc.h since we can't include it directly */ +#define barrier() __asm__ __volatile__("": : :"memory") + #endif |