diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-12-07 18:08:07 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-12-07 18:08:07 -0500 |
commit | 64271aaf6b6f166a31fcec24510575a0226230fd (patch) | |
tree | 98f3ec5b4a14dee55f631321f5aad45fea8bd001 | |
parent | 71e974213dca7fbb407554229864e8fe363db4f2 (diff) |
remove hacky implementation of userspace writes
-rw-r--r-- | include/linux/uaccess.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index 6ae0ff9494..975c963e57 100644 --- a/include/linux/uaccess.h +++ b/include/linux/uaccess.h | |||
@@ -84,20 +84,4 @@ static inline unsigned long __copy_from_user_nocache(void *to, | |||
84 | ret; \ | 84 | ret; \ |
85 | }) | 85 | }) |
86 | 86 | ||
87 | /* This is a naive attempt at a write version of the above native Linux macro. | ||
88 | */ | ||
89 | #define poke_kernel_address(val, addr) \ | ||
90 | ({ \ | ||
91 | long ret; \ | ||
92 | mm_segment_t old_fs = get_fs(); \ | ||
93 | \ | ||
94 | set_fs(KERNEL_DS); \ | ||
95 | pagefault_disable(); \ | ||
96 | ret = __put_user(val, (__force typeof(val) __user *)(addr)); \ | ||
97 | pagefault_enable(); \ | ||
98 | set_fs(old_fs); \ | ||
99 | ret; \ | ||
100 | }) | ||
101 | |||
102 | |||
103 | #endif /* __LINUX_UACCESS_H__ */ | 87 | #endif /* __LINUX_UACCESS_H__ */ |