* [PATCH] crypto: sig - Remove some unused functions
@ 2023-06-30 7:54 Jiapeng Chong
2023-07-14 8:55 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2023-06-30 7:54 UTC (permalink / raw)
To: herbert; +Cc: davem, linux-crypto, linux-kernel, Jiapeng Chong, Abaci Robot
These functions are defined in the sig.c file, but not called elsewhere,
so delete these unused functions.
crypto/sig.c:24:34: warning: unused function '__crypto_sig_tfm'.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5701
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
crypto/sig.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/crypto/sig.c b/crypto/sig.c
index b48c18ec65cd..224c47019297 100644
--- a/crypto/sig.c
+++ b/crypto/sig.c
@@ -21,11 +21,6 @@
static const struct crypto_type crypto_sig_type;
-static inline struct crypto_sig *__crypto_sig_tfm(struct crypto_tfm *tfm)
-{
- return container_of(tfm, struct crypto_sig, base);
-}
-
static int crypto_sig_init_tfm(struct crypto_tfm *tfm)
{
if (tfm->__crt_alg->cra_type != &crypto_sig_type)
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] crypto: sig - Remove some unused functions
2023-06-30 7:54 [PATCH] crypto: sig - Remove some unused functions Jiapeng Chong
@ 2023-07-14 8:55 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2023-07-14 8:55 UTC (permalink / raw)
To: Jiapeng Chong; +Cc: davem, linux-crypto, linux-kernel, Abaci Robot
On Fri, Jun 30, 2023 at 03:54:24PM +0800, Jiapeng Chong wrote:
> These functions are defined in the sig.c file, but not called elsewhere,
> so delete these unused functions.
>
> crypto/sig.c:24:34: warning: unused function '__crypto_sig_tfm'.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5701
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> crypto/sig.c | 5 -----
> 1 file changed, 5 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-14 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30 7:54 [PATCH] crypto: sig - Remove some unused functions Jiapeng Chong
2023-07-14 8:55 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®