Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Christoph Hellwig and committed by
akpm
6308499b e0690479

-7
-1
arch/alpha/lib/csum_partial_copy.c
··· 353 353 return 0; 354 354 return __csum_and_copy(src, dst, len); 355 355 } 356 - EXPORT_SYMBOL(csum_and_copy_from_user); 357 356 358 357 __wsum 359 358 csum_partial_copy_nocheck(const void *src, void *dst, int len)
-2
arch/m68k/lib/checksum.c
··· 265 265 return sum; 266 266 } 267 267 268 - EXPORT_SYMBOL(csum_and_copy_from_user); 269 - 270 268 271 269 /* 272 270 * copy from kernel space while checksumming, otherwise like csum_partial
-2
arch/powerpc/lib/checksum_wrappers.c
··· 24 24 user_read_access_end(); 25 25 return csum; 26 26 } 27 - EXPORT_SYMBOL(csum_and_copy_from_user); 28 27 29 28 __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len) 30 29 { ··· 37 38 user_write_access_end(); 38 39 return csum; 39 40 } 40 - EXPORT_SYMBOL(csum_and_copy_to_user);
-2
arch/x86/lib/csum-wrappers_64.c
··· 32 32 user_access_end(); 33 33 return sum; 34 34 } 35 - EXPORT_SYMBOL(csum_and_copy_from_user); 36 35 37 36 /** 38 37 * csum_and_copy_to_user - Copy and checksum to user space. ··· 56 57 user_access_end(); 57 58 return sum; 58 59 } 59 - EXPORT_SYMBOL(csum_and_copy_to_user); 60 60 61 61 /** 62 62 * csum_partial_copy_nocheck - Copy and checksum.