提交 6308499b 编写于 作者: C Christoph Hellwig 提交者: akpm

net: unexport csum_and_copy_{from,to}_user

csum_and_copy_from_user and csum_and_copy_to_user are exported by a few
architectures, but not actually used in modular code.  Drop the exports.

Link: https://lkml.kernel.org/r/20220421070440.1282704-1-hch@lst.deSigned-off-by: NChristoph Hellwig <hch@lst.de>
Acked-by: NJakub Kicinski <kuba@kernel.org>
Acked-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: NArnd Bergmann <arnd@arndb.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Cc: David Miller <davem@davemloft.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 e0690479
...@@ -353,7 +353,6 @@ csum_and_copy_from_user(const void __user *src, void *dst, int len) ...@@ -353,7 +353,6 @@ csum_and_copy_from_user(const void __user *src, void *dst, int len)
return 0; return 0;
return __csum_and_copy(src, dst, len); return __csum_and_copy(src, dst, len);
} }
EXPORT_SYMBOL(csum_and_copy_from_user);
__wsum __wsum
csum_partial_copy_nocheck(const void *src, void *dst, int len) csum_partial_copy_nocheck(const void *src, void *dst, int len)
......
...@@ -265,8 +265,6 @@ csum_and_copy_from_user(const void __user *src, void *dst, int len) ...@@ -265,8 +265,6 @@ csum_and_copy_from_user(const void __user *src, void *dst, int len)
return sum; return sum;
} }
EXPORT_SYMBOL(csum_and_copy_from_user);
/* /*
* copy from kernel space while checksumming, otherwise like csum_partial * copy from kernel space while checksumming, otherwise like csum_partial
......
...@@ -24,7 +24,6 @@ __wsum csum_and_copy_from_user(const void __user *src, void *dst, ...@@ -24,7 +24,6 @@ __wsum csum_and_copy_from_user(const void __user *src, void *dst,
user_read_access_end(); user_read_access_end();
return csum; return csum;
} }
EXPORT_SYMBOL(csum_and_copy_from_user);
__wsum csum_and_copy_to_user(const void *src, void __user *dst, int len) __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len)
{ {
...@@ -38,4 +37,3 @@ __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len) ...@@ -38,4 +37,3 @@ __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len)
user_write_access_end(); user_write_access_end();
return csum; return csum;
} }
EXPORT_SYMBOL(csum_and_copy_to_user);
...@@ -32,7 +32,6 @@ csum_and_copy_from_user(const void __user *src, void *dst, int len) ...@@ -32,7 +32,6 @@ csum_and_copy_from_user(const void __user *src, void *dst, int len)
user_access_end(); user_access_end();
return sum; return sum;
} }
EXPORT_SYMBOL(csum_and_copy_from_user);
/** /**
* csum_and_copy_to_user - Copy and checksum to user space. * csum_and_copy_to_user - Copy and checksum to user space.
...@@ -57,7 +56,6 @@ csum_and_copy_to_user(const void *src, void __user *dst, int len) ...@@ -57,7 +56,6 @@ csum_and_copy_to_user(const void *src, void __user *dst, int len)
user_access_end(); user_access_end();
return sum; return sum;
} }
EXPORT_SYMBOL(csum_and_copy_to_user);
/** /**
* csum_partial_copy_nocheck - Copy and checksum. * csum_partial_copy_nocheck - Copy and checksum.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册