hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/nfc/hci/llc_shdlc.c
....@@ -123,7 +123,7 @@
123123 return ((y >= x) || (y < z)) ? true : false;
124124 }
125125
126
-static struct sk_buff *llc_shdlc_alloc_skb(struct llc_shdlc *shdlc,
126
+static struct sk_buff *llc_shdlc_alloc_skb(const struct llc_shdlc *shdlc,
127127 int payload_len)
128128 {
129129 struct sk_buff *skb;
....@@ -137,7 +137,7 @@
137137 }
138138
139139 /* immediately sends an S frame. */
140
-static int llc_shdlc_send_s_frame(struct llc_shdlc *shdlc,
140
+static int llc_shdlc_send_s_frame(const struct llc_shdlc *shdlc,
141141 enum sframe_type sframe_type, int nr)
142142 {
143143 int r;
....@@ -159,7 +159,7 @@
159159 }
160160
161161 /* immediately sends an U frame. skb may contain optional payload */
162
-static int llc_shdlc_send_u_frame(struct llc_shdlc *shdlc,
162
+static int llc_shdlc_send_u_frame(const struct llc_shdlc *shdlc,
163163 struct sk_buff *skb,
164164 enum uframe_modifier uframe_modifier)
165165 {
....@@ -361,7 +361,7 @@
361361 wake_up(shdlc->connect_wq);
362362 }
363363
364
-static int llc_shdlc_connect_initiate(struct llc_shdlc *shdlc)
364
+static int llc_shdlc_connect_initiate(const struct llc_shdlc *shdlc)
365365 {
366366 struct sk_buff *skb;
367367
....@@ -377,7 +377,7 @@
377377 return llc_shdlc_send_u_frame(shdlc, skb, U_FRAME_RSET);
378378 }
379379
380
-static int llc_shdlc_connect_send_ua(struct llc_shdlc *shdlc)
380
+static int llc_shdlc_connect_send_ua(const struct llc_shdlc *shdlc)
381381 {
382382 struct sk_buff *skb;
383383