From: Denis Efremov Date: Tue, 19 Jun 2018 20:23:57 +0000 (+0300) Subject: crypto: skcipher - remove the exporting of skcipher_walk_next X-Git-Tag: v4.19-rc1~139^2~101 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e4e4730698c9138f09ed73dadd1f35d4bb95ada5;p=uclinux-h8%2Flinux.git crypto: skcipher - remove the exporting of skcipher_walk_next The function skcipher_walk_next declared as static and marked as EXPORT_SYMBOL_GPL. It's a bit confusing for internal function to be exported. The area of visibility for such function is its .c file and all other modules. Other *.c files of the same module can't use it, despite all other modules can. Relying on the fact that this is the internal function and it's not a crucial part of the API, the patch just removes the EXPORT_SYMBOL_GPL marking of skcipher_walk_next. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov Signed-off-by: Herbert Xu --- diff --git a/crypto/skcipher.c b/crypto/skcipher.c index 0fe2a2923ad0..7d6a49fe3047 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c @@ -387,7 +387,6 @@ set_phys_lowmem: } return err; } -EXPORT_SYMBOL_GPL(skcipher_walk_next); static int skcipher_copy_iv(struct skcipher_walk *walk) {