diff options
Diffstat (limited to 'net/dccp/ackvec.h')
-rw-r--r-- | net/dccp/ackvec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h index f083daf4200c..470bae8a9d07 100644 --- a/net/dccp/ackvec.h +++ b/net/dccp/ackvec.h | |||
@@ -71,6 +71,9 @@ struct sock; | |||
71 | struct sk_buff; | 71 | struct sk_buff; |
72 | 72 | ||
73 | #ifdef CONFIG_IP_DCCP_ACKVEC | 73 | #ifdef CONFIG_IP_DCCP_ACKVEC |
74 | extern int dccp_ackvec_init(void); | ||
75 | extern void dccp_ackvec_exit(void); | ||
76 | |||
74 | extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority); | 77 | extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority); |
75 | extern void dccp_ackvec_free(struct dccp_ackvec *av); | 78 | extern void dccp_ackvec_free(struct dccp_ackvec *av); |
76 | 79 | ||
@@ -89,6 +92,15 @@ static inline int dccp_ackvec_pending(const struct dccp_ackvec *av) | |||
89 | return av->dccpav_sent_len != av->dccpav_vec_len; | 92 | return av->dccpav_sent_len != av->dccpav_vec_len; |
90 | } | 93 | } |
91 | #else /* CONFIG_IP_DCCP_ACKVEC */ | 94 | #else /* CONFIG_IP_DCCP_ACKVEC */ |
95 | static inline int dccp_ackvec_init(void) | ||
96 | { | ||
97 | return 0; | ||
98 | } | ||
99 | |||
100 | static inline void dccp_ackvec_exit(void) | ||
101 | { | ||
102 | } | ||
103 | |||
92 | static inline struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority) | 104 | static inline struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority) |
93 | { | 105 | { |
94 | return NULL; | 106 | return NULL; |