net/sctp/auth.c: make 3 functions static
Subsystems (3)
PATCH 1/1 net/sctp/auth.c: make 3 functions static
This patch makes three needlessly global functions static.
Signed-off-by Adrian Bunk <[email protected]>
---
include/net/sctp/auth.h | 1 - net/sctp/auth.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-)
102a72ca5278d3c502bee6af4c4d11c9876d5a2d
include/net/sctp/auth.h +0 -1
@@ -88,7 +88,6 @@ static inline void sctp_auth_key_hold(struct sctp_auth_bytes *key)void sctp_auth_key_put (struct sctp_auth_bytes *key);struct sctp_shared_key *sctp_auth_shkey_create (__u16 key_id,gfp_t gfp); -void sctp_auth_shkey_free (struct sctp_shared_key *sh_key);void sctp_auth_destroy_keys (struct list_head *keys);int sctp_auth_asoc_init_active_key (struct sctp_association *asoc,gfp_t gfp); struct sctp_shared_key *sctp_auth_get_shkey(
net/sctp/auth.c +3 -3
@@ -107,7 +107,7 @@ struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) }/* Free the shared key stucture */ -void sctp_auth_shkey_free (struct sctp_shared_key *sh_key) +static void sctp_auth_shkey_free (struct sctp_shared_key *sh_key) {BUG_ON (!list_empty (&sh_key->key_list));sctp_auth_key_put (sh_key->key);
@@ -220,7 +220,7 @@ static struct sctp_auth_bytes *sctp_auth_make_key_vector(/* Make a key vector based on our local parameters */ -struct sctp_auth_bytes *sctp_auth_make_local_vector ( +static struct sctp_auth_bytes *sctp_auth_make_local_vector (const struct sctp_association *asoc,gfp_t gfp) {
@@ -232,7 +232,7 @@ struct sctp_auth_bytes *sctp_auth_make_local_vector( }/* Make a key vector based on peer's parameters */ -struct sctp_auth_bytes *sctp_auth_make_peer_vector ( +static struct sctp_auth_bytes *sctp_auth_make_peer_vector (const struct sctp_association *asoc,gfp_t gfp) {
Quoted 3 lines · Adrian Bunk
This patch makes three needlessly global functions static.
Signed-off-by Adrian Bunk <[email protected]>
ACK. Thanks for catching these..
-vlad
From: Vlad Yasevich <[email protected]>
Date: Wed, 24 Oct 2007 16:27:38 -0400
Quoted 6 lines
Quoted 3 lines · Adrian Bunk
This patch makes three needlessly global functions static.
Signed-off-by Adrian Bunk <[email protected]>ACK. Thanks for catching these..
Applied, thanks everyone.