diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sock.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index ebf9552664b2..1f4294252dd7 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -640,31 +640,13 @@ static inline void sk_refcnt_debug_release(const struct sock *sk) | |||
640 | # define REF_PROTO_INUSE(NAME) PCOUNTER_MEMBER_INITIALIZER(NAME, .inuse) | 640 | # define REF_PROTO_INUSE(NAME) PCOUNTER_MEMBER_INITIALIZER(NAME, .inuse) |
641 | /* Called with local bh disabled */ | 641 | /* Called with local bh disabled */ |
642 | extern void sock_prot_inuse_add(struct proto *prot, int inc); | 642 | extern void sock_prot_inuse_add(struct proto *prot, int inc); |
643 | |||
644 | static inline int sock_prot_inuse_init(struct proto *proto) | ||
645 | { | ||
646 | return pcounter_alloc(&proto->inuse); | ||
647 | } | ||
648 | |||
649 | extern int sock_prot_inuse_get(struct proto *proto); | 643 | extern int sock_prot_inuse_get(struct proto *proto); |
650 | |||
651 | static inline void sock_prot_inuse_free(struct proto *proto) | ||
652 | { | ||
653 | pcounter_free(&proto->inuse); | ||
654 | } | ||
655 | #else | 644 | #else |
656 | # define DEFINE_PROTO_INUSE(NAME) | 645 | # define DEFINE_PROTO_INUSE(NAME) |
657 | # define REF_PROTO_INUSE(NAME) | 646 | # define REF_PROTO_INUSE(NAME) |
658 | static void inline sock_prot_inuse_add(struct proto *prot, int inc) | 647 | static void inline sock_prot_inuse_add(struct proto *prot, int inc) |
659 | { | 648 | { |
660 | } | 649 | } |
661 | static int inline sock_prot_inuse_init(struct proto *proto) | ||
662 | { | ||
663 | return 0; | ||
664 | } | ||
665 | static void inline sock_prot_inuse_free(struct proto *proto) | ||
666 | { | ||
667 | } | ||
668 | #endif | 650 | #endif |
669 | 651 | ||
670 | 652 | ||