mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
UPSTREAM: maccess: remove various unused weak aliases
maccess tends to define lots of underscore prefixed symbols that then have other weak aliases. But except for two cases they are never actually used, so remove them. Change-Id: Ia529e72bd40d80f1b17a4482a2f68ad56d3067f3 Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ce18ca1ed3
commit
099101399d
2 changed files with 3 additions and 19 deletions
19
mm/maccess.c
19
mm/maccess.c
|
|
@ -86,11 +86,7 @@ EXPORT_SYMBOL_GPL(probe_kernel_read);
|
|||
* Safely read from user address @src to the buffer at @dst. If a kernel fault
|
||||
* happens, handle that and return -EFAULT.
|
||||
*/
|
||||
|
||||
long __weak probe_user_read(void *dst, const void __user *src, size_t size)
|
||||
__attribute__((alias("__probe_user_read")));
|
||||
|
||||
long __probe_user_read(void *dst, const void __user *src, size_t size)
|
||||
long probe_user_read(void *dst, const void __user *src, size_t size)
|
||||
{
|
||||
long ret = -EFAULT;
|
||||
mm_segment_t old_fs = get_fs();
|
||||
|
|
@ -113,11 +109,7 @@ EXPORT_SYMBOL_GPL(probe_user_read);
|
|||
* Safely write to address @dst from the buffer at @src. If a kernel fault
|
||||
* happens, handle that and return -EFAULT.
|
||||
*/
|
||||
|
||||
long __weak probe_kernel_write(void *dst, const void *src, size_t size)
|
||||
__attribute__((alias("__probe_kernel_write")));
|
||||
|
||||
long __probe_kernel_write(void *dst, const void *src, size_t size)
|
||||
long probe_kernel_write(void *dst, const void *src, size_t size)
|
||||
{
|
||||
long ret;
|
||||
mm_segment_t old_fs = get_fs();
|
||||
|
|
@ -139,11 +131,7 @@ EXPORT_SYMBOL_GPL(probe_kernel_write);
|
|||
* Safely write to address @dst from the buffer at @src. If a kernel fault
|
||||
* happens, handle that and return -EFAULT.
|
||||
*/
|
||||
|
||||
long __weak probe_user_write(void __user *dst, const void *src, size_t size)
|
||||
__attribute__((alias("__probe_user_write")));
|
||||
|
||||
long __probe_user_write(void __user *dst, const void *src, size_t size)
|
||||
long probe_user_write(void __user *dst, const void *src, size_t size)
|
||||
{
|
||||
long ret = -EFAULT;
|
||||
mm_segment_t old_fs = get_fs();
|
||||
|
|
@ -181,7 +169,6 @@ EXPORT_SYMBOL_GPL(probe_user_write);
|
|||
* DO NOT USE THIS FUNCTION - it is broken on architectures with entirely
|
||||
* separate kernel and user address spaces, and also a bad idea otherwise.
|
||||
*/
|
||||
|
||||
long __weak strncpy_from_unsafe(char *dst, const void *unsafe_addr, long count)
|
||||
__attribute__((alias("__strncpy_from_unsafe")));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue