Skip to content

Commit 33f1b36

Browse files
Christoph Hellwigkuba-moo
authored andcommitted
sctp: mark sctp_do_peeloff static
sctp_do_peeloff is only used inside of net/sctp/socket.c, so mark it static. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Xin Long <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3b99355 commit 33f1b36

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/net/sctp/sctp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ sctp_assoc_to_state(const struct sctp_association *asoc)
364364
/* Look up the association by its id. */
365365
struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id);
366366

367-
int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp);
368-
369367
/* A macro to walk a list of skbs. */
370368
#define sctp_skb_for_each(pos, head, tmp) \
371369
skb_queue_walk_safe(head, pos, tmp)

net/sctp/socket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5627,7 +5627,8 @@ static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optv
56275627
}
56285628

56295629
/* Helper routine to branch off an association to a new socket. */
5630-
int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp)
5630+
static int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id,
5631+
struct socket **sockp)
56315632
{
56325633
struct sctp_association *asoc = sctp_id2assoc(sk, id);
56335634
struct sctp_sock *sp = sctp_sk(sk);
@@ -5675,7 +5676,6 @@ int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, struct socket **sockp)
56755676

56765677
return err;
56775678
}
5678-
EXPORT_SYMBOL(sctp_do_peeloff);
56795679

56805680
static int sctp_getsockopt_peeloff_common(struct sock *sk, sctp_peeloff_arg_t *peeloff,
56815681
struct file **newfile, unsigned flags)

0 commit comments

Comments
 (0)