aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/llc_c_ac.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-21 13:22:45 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-21 14:01:38 -0400
commitbf3c710f71a6144bd4d3bb9efb91099863debfb8 (patch)
treee368955a8903bac06d9759ce898514db5e51c551 /include/net/llc_c_ac.h
parentcb7d3d71e986067d19d991d75bff07ca304c9084 (diff)
llc*.h: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/llc_c_ac.h')
-rw-r--r--include/net/llc_c_ac.h190
1 files changed, 84 insertions, 106 deletions
diff --git a/include/net/llc_c_ac.h b/include/net/llc_c_ac.h
index df83f69d2de4..f3be818e73c1 100644
--- a/include/net/llc_c_ac.h
+++ b/include/net/llc_c_ac.h
@@ -89,114 +89,92 @@
89 89
90typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 90typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
91 91
92extern int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 92int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
93extern int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 93int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
94extern int llc_conn_ac_conn_confirm(struct sock* sk, struct sk_buff *skb); 94int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
95extern int llc_conn_ac_data_ind(struct sock* sk, struct sk_buff *skb); 95int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
96extern int llc_conn_ac_disc_ind(struct sock* sk, struct sk_buff *skb); 96int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
97extern int llc_conn_ac_rst_ind(struct sock* sk, struct sk_buff *skb); 97int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
98extern int llc_conn_ac_rst_confirm(struct sock* sk, struct sk_buff *skb); 98int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
99extern int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock* sk, 99int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk,
100 struct sk_buff *skb);
101extern int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock* sk,
102 struct sk_buff *skb);
103extern int llc_conn_ac_send_disc_cmd_p_set_x(struct sock* sk,
104 struct sk_buff *skb);
105extern int llc_conn_ac_send_dm_rsp_f_set_p(struct sock* sk,
106 struct sk_buff *skb);
107extern int llc_conn_ac_send_dm_rsp_f_set_1(struct sock* sk,
108 struct sk_buff *skb);
109extern int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock* sk,
110 struct sk_buff *skb);
111extern int llc_conn_ac_resend_frmr_rsp_f_set_0(struct sock* sk,
112 struct sk_buff *skb);
113extern int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock* sk,
114 struct sk_buff *skb);
115extern int llc_conn_ac_send_i_cmd_p_set_1(struct sock* sk, struct sk_buff *skb);
116extern int llc_conn_ac_send_i_xxx_x_set_0(struct sock* sk, struct sk_buff *skb);
117extern int llc_conn_ac_resend_i_xxx_x_set_0(struct sock* sk,
118 struct sk_buff *skb);
119extern int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock* sk,
120 struct sk_buff *skb);
121extern int llc_conn_ac_resend_i_rsp_f_set_1(struct sock* sk,
122 struct sk_buff *skb);
123extern int llc_conn_ac_send_rej_cmd_p_set_1(struct sock* sk,
124 struct sk_buff *skb);
125extern int llc_conn_ac_send_rej_rsp_f_set_1(struct sock* sk,
126 struct sk_buff *skb);
127extern int llc_conn_ac_send_rej_xxx_x_set_0(struct sock* sk,
128 struct sk_buff *skb); 100 struct sk_buff *skb);
129extern int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock* sk, 101int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk,
130 struct sk_buff *skb); 102 struct sk_buff *skb);
131extern int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock* sk, 103int llc_conn_ac_send_disc_cmd_p_set_x(struct sock *sk, struct sk_buff *skb);
132 struct sk_buff *skb); 104int llc_conn_ac_send_dm_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
133extern int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock* sk, 105int llc_conn_ac_send_dm_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
134 struct sk_buff *skb); 106int llc_conn_ac_send_frmr_rsp_f_set_x(struct sock *sk, struct sk_buff *skb);
135extern int llc_conn_ac_set_remote_busy(struct sock* sk, struct sk_buff *skb); 107int llc_conn_ac_resend_frmr_rsp_f_set_0(struct sock *sk, struct sk_buff *skb);
136extern int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock* sk, 108int llc_conn_ac_resend_frmr_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
109int llc_conn_ac_send_i_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
110int llc_conn_ac_send_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
111int llc_conn_ac_resend_i_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
112int llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(struct sock *sk,
137 struct sk_buff *skb); 113 struct sk_buff *skb);
138extern int llc_conn_ac_send_rr_cmd_p_set_1(struct sock* sk, 114int llc_conn_ac_resend_i_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
139 struct sk_buff *skb); 115int llc_conn_ac_send_rej_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
140extern int llc_conn_ac_send_rr_rsp_f_set_1(struct sock* sk, 116int llc_conn_ac_send_rej_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
141 struct sk_buff *skb); 117int llc_conn_ac_send_rej_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
142extern int llc_conn_ac_send_ack_rsp_f_set_1(struct sock* sk, 118int llc_conn_ac_send_rnr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
143 struct sk_buff *skb); 119int llc_conn_ac_send_rnr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
144extern int llc_conn_ac_send_rr_xxx_x_set_0(struct sock* sk, 120int llc_conn_ac_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
145 struct sk_buff *skb); 121int llc_conn_ac_set_remote_busy(struct sock *sk, struct sk_buff *skb);
146extern int llc_conn_ac_send_ack_xxx_x_set_0(struct sock* sk, 122int llc_conn_ac_opt_send_rnr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
147 struct sk_buff *skb); 123int llc_conn_ac_send_rr_cmd_p_set_1(struct sock *sk, struct sk_buff *skb);
148extern int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock* sk, 124int llc_conn_ac_send_rr_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
149 struct sk_buff *skb); 125int llc_conn_ac_send_ack_rsp_f_set_1(struct sock *sk, struct sk_buff *skb);
150extern int llc_conn_ac_send_ua_rsp_f_set_p(struct sock* sk, 126int llc_conn_ac_send_rr_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
151 struct sk_buff *skb); 127int llc_conn_ac_send_ack_xxx_x_set_0(struct sock *sk, struct sk_buff *skb);
152extern int llc_conn_ac_set_s_flag_0(struct sock* sk, struct sk_buff *skb); 128int llc_conn_ac_send_sabme_cmd_p_set_x(struct sock *sk, struct sk_buff *skb);
153extern int llc_conn_ac_set_s_flag_1(struct sock* sk, struct sk_buff *skb); 129int llc_conn_ac_send_ua_rsp_f_set_p(struct sock *sk, struct sk_buff *skb);
154extern int llc_conn_ac_start_p_timer(struct sock* sk, struct sk_buff *skb); 130int llc_conn_ac_set_s_flag_0(struct sock *sk, struct sk_buff *skb);
155extern int llc_conn_ac_start_ack_timer(struct sock* sk, struct sk_buff *skb); 131int llc_conn_ac_set_s_flag_1(struct sock *sk, struct sk_buff *skb);
156extern int llc_conn_ac_start_rej_timer(struct sock* sk, struct sk_buff *skb); 132int llc_conn_ac_start_p_timer(struct sock *sk, struct sk_buff *skb);
157extern int llc_conn_ac_start_ack_tmr_if_not_running(struct sock* sk, 133int llc_conn_ac_start_ack_timer(struct sock *sk, struct sk_buff *skb);
158 struct sk_buff *skb); 134int llc_conn_ac_start_rej_timer(struct sock *sk, struct sk_buff *skb);
159extern int llc_conn_ac_stop_ack_timer(struct sock* sk, struct sk_buff *skb); 135int llc_conn_ac_start_ack_tmr_if_not_running(struct sock *sk,
160extern int llc_conn_ac_stop_p_timer(struct sock* sk, struct sk_buff *skb); 136 struct sk_buff *skb);
161extern int llc_conn_ac_stop_rej_timer(struct sock* sk, struct sk_buff *skb); 137int llc_conn_ac_stop_ack_timer(struct sock *sk, struct sk_buff *skb);
162extern int llc_conn_ac_stop_all_timers(struct sock* sk, struct sk_buff *skb); 138int llc_conn_ac_stop_p_timer(struct sock *sk, struct sk_buff *skb);
163extern int llc_conn_ac_stop_other_timers(struct sock* sk, struct sk_buff *skb); 139int llc_conn_ac_stop_rej_timer(struct sock *sk, struct sk_buff *skb);
164extern int llc_conn_ac_upd_nr_received(struct sock* sk, struct sk_buff *skb); 140int llc_conn_ac_stop_all_timers(struct sock *sk, struct sk_buff *skb);
165extern int llc_conn_ac_inc_tx_win_size(struct sock* sk, struct sk_buff *skb); 141int llc_conn_ac_stop_other_timers(struct sock *sk, struct sk_buff *skb);
166extern int llc_conn_ac_dec_tx_win_size(struct sock* sk, struct sk_buff *skb); 142int llc_conn_ac_upd_nr_received(struct sock *sk, struct sk_buff *skb);
167extern int llc_conn_ac_upd_p_flag(struct sock* sk, struct sk_buff *skb); 143int llc_conn_ac_inc_tx_win_size(struct sock *sk, struct sk_buff *skb);
168extern int llc_conn_ac_set_data_flag_2(struct sock* sk, struct sk_buff *skb); 144int llc_conn_ac_dec_tx_win_size(struct sock *sk, struct sk_buff *skb);
169extern int llc_conn_ac_set_data_flag_0(struct sock* sk, struct sk_buff *skb); 145int llc_conn_ac_upd_p_flag(struct sock *sk, struct sk_buff *skb);
170extern int llc_conn_ac_set_data_flag_1(struct sock* sk, struct sk_buff *skb); 146int llc_conn_ac_set_data_flag_2(struct sock *sk, struct sk_buff *skb);
171extern int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock* sk, 147int llc_conn_ac_set_data_flag_0(struct sock *sk, struct sk_buff *skb);
172 struct sk_buff *skb); 148int llc_conn_ac_set_data_flag_1(struct sock *sk, struct sk_buff *skb);
173extern int llc_conn_ac_set_p_flag_0(struct sock* sk, struct sk_buff *skb); 149int llc_conn_ac_set_data_flag_1_if_data_flag_eq_0(struct sock *sk,
174extern int llc_conn_ac_set_remote_busy_0(struct sock* sk, struct sk_buff *skb); 150 struct sk_buff *skb);
175extern int llc_conn_ac_set_retry_cnt_0(struct sock* sk, struct sk_buff *skb); 151int llc_conn_ac_set_p_flag_0(struct sock *sk, struct sk_buff *skb);
176extern int llc_conn_ac_set_cause_flag_0(struct sock* sk, struct sk_buff *skb); 152int llc_conn_ac_set_remote_busy_0(struct sock *sk, struct sk_buff *skb);
177extern int llc_conn_ac_set_cause_flag_1(struct sock* sk, struct sk_buff *skb); 153int llc_conn_ac_set_retry_cnt_0(struct sock *sk, struct sk_buff *skb);
178extern int llc_conn_ac_inc_retry_cnt_by_1(struct sock* sk, struct sk_buff *skb); 154int llc_conn_ac_set_cause_flag_0(struct sock *sk, struct sk_buff *skb);
179extern int llc_conn_ac_set_vr_0(struct sock* sk, struct sk_buff *skb); 155int llc_conn_ac_set_cause_flag_1(struct sock *sk, struct sk_buff *skb);
180extern int llc_conn_ac_inc_vr_by_1(struct sock* sk, struct sk_buff *skb); 156int llc_conn_ac_inc_retry_cnt_by_1(struct sock *sk, struct sk_buff *skb);
181extern int llc_conn_ac_set_vs_0(struct sock* sk, struct sk_buff *skb); 157int llc_conn_ac_set_vr_0(struct sock *sk, struct sk_buff *skb);
182extern int llc_conn_ac_set_vs_nr(struct sock* sk, struct sk_buff *skb); 158int llc_conn_ac_inc_vr_by_1(struct sock *sk, struct sk_buff *skb);
183extern int llc_conn_ac_rst_vs(struct sock* sk, struct sk_buff *skb); 159int llc_conn_ac_set_vs_0(struct sock *sk, struct sk_buff *skb);
184extern int llc_conn_ac_upd_vs(struct sock* sk, struct sk_buff *skb); 160int llc_conn_ac_set_vs_nr(struct sock *sk, struct sk_buff *skb);
185extern int llc_conn_disc(struct sock* sk, struct sk_buff *skb); 161int llc_conn_ac_rst_vs(struct sock *sk, struct sk_buff *skb);
186extern int llc_conn_reset(struct sock* sk, struct sk_buff *skb); 162int llc_conn_ac_upd_vs(struct sock *sk, struct sk_buff *skb);
187extern int llc_conn_ac_disc_confirm(struct sock* sk, struct sk_buff *skb); 163int llc_conn_disc(struct sock *sk, struct sk_buff *skb);
188extern u8 llc_circular_between(u8 a, u8 b, u8 c); 164int llc_conn_reset(struct sock *sk, struct sk_buff *skb);
189extern int llc_conn_ac_send_ack_if_needed(struct sock* sk, struct sk_buff *skb); 165int llc_conn_ac_disc_confirm(struct sock *sk, struct sk_buff *skb);
190extern int llc_conn_ac_adjust_npta_by_rr(struct sock* sk, struct sk_buff *skb); 166u8 llc_circular_between(u8 a, u8 b, u8 c);
191extern int llc_conn_ac_adjust_npta_by_rnr(struct sock* sk, struct sk_buff *skb); 167int llc_conn_ac_send_ack_if_needed(struct sock *sk, struct sk_buff *skb);
192extern int llc_conn_ac_rst_sendack_flag(struct sock* sk, struct sk_buff *skb); 168int llc_conn_ac_adjust_npta_by_rr(struct sock *sk, struct sk_buff *skb);
193extern int llc_conn_ac_send_i_rsp_as_ack(struct sock* sk, struct sk_buff *skb); 169int llc_conn_ac_adjust_npta_by_rnr(struct sock *sk, struct sk_buff *skb);
194extern int llc_conn_ac_send_i_as_ack(struct sock* sk, struct sk_buff *skb); 170int llc_conn_ac_rst_sendack_flag(struct sock *sk, struct sk_buff *skb);
171int llc_conn_ac_send_i_rsp_as_ack(struct sock *sk, struct sk_buff *skb);
172int llc_conn_ac_send_i_as_ack(struct sock *sk, struct sk_buff *skb);
195 173
196extern void llc_conn_busy_tmr_cb(unsigned long timeout_data); 174void llc_conn_busy_tmr_cb(unsigned long timeout_data);
197extern void llc_conn_pf_cycle_tmr_cb(unsigned long timeout_data); 175void llc_conn_pf_cycle_tmr_cb(unsigned long timeout_data);
198extern void llc_conn_ack_tmr_cb(unsigned long timeout_data); 176void llc_conn_ack_tmr_cb(unsigned long timeout_data);
199extern void llc_conn_rej_tmr_cb(unsigned long timeout_data); 177void llc_conn_rej_tmr_cb(unsigned long timeout_data);
200 178
201extern void llc_conn_set_p_flag(struct sock *sk, u8 value); 179void llc_conn_set_p_flag(struct sock *sk, u8 value);
202#endif /* LLC_C_AC_H */ 180#endif /* LLC_C_AC_H */