Skip to contentSkip to conversation

sctp: Remove unused declaration sctp_auth_init_hmacs()

PATCH Applied Yue Haibing 3 participants 3 messages Nov 13, 2025 – Nov 15, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sctp: Remove unused declaration sctp_auth_init_hmacs()

Commit bf40785fa437 ("sctp: Use HMAC-SHA1 and HMAC-SHA256 library for chunk authentication") removed the implementation but leave declaration.

---
 include/net/sctp/auth.h | 1 -
 1 file changed, 1 deletion(-)
include/net/sctp/auth.h +0 -1
index 3d5879e08e78..6f2cd562b1de 100644
@@ -72,7 +72,6 @@ struct sctp_shared_key *sctp_auth_get_shkey(
 int sctp_auth_asoc_copy_shkeys(const struct sctp_endpoint *ep,
 				struct sctp_association *asoc,
 				gfp_t gfp);
-int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp);
 const struct sctp_hmac *sctp_auth_get_hmac(__u16 hmac_id);
 const struct sctp_hmac *
 sctp_auth_asoc_get_hmac(const struct sctp_association *asoc);
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Yue Haibing

Commit bf40785fa437 ("sctp: Use HMAC-SHA1 and HMAC-SHA256 library for chunk authentication") removed the implementation but leave declaration.

---
 include/net/sctp/auth.h | 1 -
 1 file changed, 1 deletion(-)
include/net/sctp/auth.h +0 -0
index 3d5879e08e78..6f2cd562b1de 100644

include/net/sctp/auth.h struct sctp_shared_key *sctp_auth_get_shkey( · line 77

Quoted 7 lines
include/net/sctp/auth.h +0 -1
@@ -72,7 +72,6 @@ struct sctp_shared_key *sctp_auth_get_shkey(
 int sctp_auth_asoc_copy_shkeys(const struct sctp_endpoint *ep,
 				struct sctp_association *asoc,
 				gfp_t gfp);
-int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp);
 const struct sctp_hmac *sctp_auth_get_hmac(__u16 hmac_id);
 const struct sctp_hmac *
 sctp_auth_asoc_get_hmac(const struct sctp_association *asoc);

- Eric

#2 lore raw
In reply to Yue Haibing
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Thu, 13 Nov 2025 19:45:01 +0800 you wrote:

Commit bf40785fa437 ("sctp: Use HMAC-SHA1 and HMAC-SHA256 library for chunk authentication") removed the implementation but leave declaration.

---
 include/net/sctp/auth.h | 1 -
 1 file changed, 1 deletion(-)

Here is the summary with links:
- [net-next] sctp: Remove unused declaration sctp_auth_init_hmacs()

    https://git.kernel.org/netdev/net-next/c/06ac47065819

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html