diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/sock.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 1f4294252dd7..2a3344f666aa 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -47,7 +47,6 @@ | |||
| 47 | #include <linux/module.h> | 47 | #include <linux/module.h> |
| 48 | #include <linux/lockdep.h> | 48 | #include <linux/lockdep.h> |
| 49 | #include <linux/netdevice.h> | 49 | #include <linux/netdevice.h> |
| 50 | #include <linux/pcounter.h> | ||
| 51 | #include <linux/skbuff.h> /* struct sk_buff */ | 50 | #include <linux/skbuff.h> /* struct sk_buff */ |
| 52 | #include <linux/mm.h> | 51 | #include <linux/mm.h> |
| 53 | #include <linux/security.h> | 52 | #include <linux/security.h> |
| @@ -563,7 +562,6 @@ struct proto { | |||
| 563 | /* Keeping track of sockets in use */ | 562 | /* Keeping track of sockets in use */ |
| 564 | #ifdef CONFIG_PROC_FS | 563 | #ifdef CONFIG_PROC_FS |
| 565 | unsigned int inuse_idx; | 564 | unsigned int inuse_idx; |
| 566 | struct pcounter inuse; | ||
| 567 | #endif | 565 | #endif |
| 568 | 566 | ||
| 569 | /* Memory pressure */ | 567 | /* Memory pressure */ |
| @@ -636,14 +634,10 @@ static inline void sk_refcnt_debug_release(const struct sock *sk) | |||
| 636 | 634 | ||
| 637 | 635 | ||
| 638 | #ifdef CONFIG_PROC_FS | 636 | #ifdef CONFIG_PROC_FS |
| 639 | # define DEFINE_PROTO_INUSE(NAME) DEFINE_PCOUNTER(NAME) | ||
| 640 | # define REF_PROTO_INUSE(NAME) PCOUNTER_MEMBER_INITIALIZER(NAME, .inuse) | ||
| 641 | /* Called with local bh disabled */ | 637 | /* Called with local bh disabled */ |
| 642 | extern void sock_prot_inuse_add(struct proto *prot, int inc); | 638 | extern void sock_prot_inuse_add(struct proto *prot, int inc); |
| 643 | extern int sock_prot_inuse_get(struct proto *proto); | 639 | extern int sock_prot_inuse_get(struct proto *proto); |
| 644 | #else | 640 | #else |
| 645 | # define DEFINE_PROTO_INUSE(NAME) | ||
| 646 | # define REF_PROTO_INUSE(NAME) | ||
| 647 | static void inline sock_prot_inuse_add(struct proto *prot, int inc) | 641 | static void inline sock_prot_inuse_add(struct proto *prot, int inc) |
| 648 | { | 642 | { |
| 649 | } | 643 | } |
