diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2006-03-21 01:59:36 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:59:36 -0500 |
| commit | f4ad2b162d653e4a6e57d598119e3820c65fef71 (patch) | |
| tree | 142e7160b4dda4c4080d688d82bb1462a10f7e03 | |
| parent | fda93d92d7824159d8532995072dde2bee4bc4b3 (diff) | |
[LLC]: llc_mac_hdr_init const arguments
Cleanup of LLC. llc_mac_hdr_init can take constant arguments,
and it is defined twice once in llc_output.h that is otherwise unused.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Acked-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | include/net/llc.h | 2 | ||||
| -rw-r--r-- | net/llc/llc_c_ac.c | 1 | ||||
| -rw-r--r-- | net/llc/llc_output.c | 3 | ||||
| -rw-r--r-- | net/llc/llc_output.h | 20 | ||||
| -rw-r--r-- | net/llc/llc_s_ac.c | 2 |
5 files changed, 4 insertions, 24 deletions
diff --git a/include/net/llc.h b/include/net/llc.h index 1adb2ef3f6f7..f5024583fc8b 100644 --- a/include/net/llc.h +++ b/include/net/llc.h | |||
| @@ -71,7 +71,7 @@ extern int llc_rcv(struct sk_buff *skb, struct net_device *dev, | |||
| 71 | struct packet_type *pt, struct net_device *orig_dev); | 71 | struct packet_type *pt, struct net_device *orig_dev); |
| 72 | 72 | ||
| 73 | extern int llc_mac_hdr_init(struct sk_buff *skb, | 73 | extern int llc_mac_hdr_init(struct sk_buff *skb, |
| 74 | unsigned char *sa, unsigned char *da); | 74 | const unsigned char *sa, const unsigned char *da); |
| 75 | 75 | ||
| 76 | extern void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, | 76 | extern void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, |
| 77 | struct sk_buff *skb)); | 77 | struct sk_buff *skb)); |
diff --git a/net/llc/llc_c_ac.c b/net/llc/llc_c_ac.c index 8169f24ed33e..860140caa6e0 100644 --- a/net/llc/llc_c_ac.c +++ b/net/llc/llc_c_ac.c | |||
| @@ -27,7 +27,6 @@ | |||
| 27 | #include <net/llc_pdu.h> | 27 | #include <net/llc_pdu.h> |
| 28 | #include <net/llc.h> | 28 | #include <net/llc.h> |
| 29 | 29 | ||
| 30 | #include "llc_output.h" | ||
| 31 | 30 | ||
| 32 | static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb); | 31 | static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb); |
| 33 | static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb); | 32 | static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb); |
diff --git a/net/llc/llc_output.c b/net/llc/llc_output.c index b4d55b6abb67..b4e668e0e12c 100644 --- a/net/llc/llc_output.c +++ b/net/llc/llc_output.c | |||
| @@ -30,7 +30,8 @@ | |||
| 30 | * Fills MAC header fields, depending on MAC type. Returns 0, If MAC type | 30 | * Fills MAC header fields, depending on MAC type. Returns 0, If MAC type |
| 31 | * is a valid type and initialization completes correctly 1, otherwise. | 31 | * is a valid type and initialization completes correctly 1, otherwise. |
| 32 | */ | 32 | */ |
| 33 | int llc_mac_hdr_init(struct sk_buff *skb, unsigned char *sa, unsigned char *da) | 33 | int llc_mac_hdr_init(struct sk_buff *skb, |
| 34 | const unsigned char *sa, const unsigned char *da) | ||
| 34 | { | 35 | { |
| 35 | int rc = 0; | 36 | int rc = 0; |
| 36 | 37 | ||
diff --git a/net/llc/llc_output.h b/net/llc/llc_output.h deleted file mode 100644 index 179edf753f00..000000000000 --- a/net/llc/llc_output.h +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | #ifndef LLC_OUTPUT_H | ||
| 2 | #define LLC_OUTPUT_H | ||
| 3 | /* | ||
| 4 | * Copyright (c) 1997 by Procom Technology, Inc. | ||
| 5 | * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> | ||
| 6 | * | ||
| 7 | * This program can be redistributed or modified under the terms of the | ||
| 8 | * GNU General Public License version 2 as published by the Free Software | ||
| 9 | * Foundation. | ||
| 10 | * This program is distributed without any warranty or implied warranty | ||
| 11 | * of merchantability or fitness for a particular purpose. | ||
| 12 | * | ||
| 13 | * See the GNU General Public License version 2 for more details. | ||
| 14 | */ | ||
| 15 | |||
| 16 | struct sk_buff; | ||
| 17 | |||
| 18 | int llc_mac_hdr_init(struct sk_buff *skb, unsigned char *sa, unsigned char *da); | ||
| 19 | |||
| 20 | #endif /* LLC_OUTPUT_H */ | ||
diff --git a/net/llc/llc_s_ac.c b/net/llc/llc_s_ac.c index bb3580fb8cfe..ac3d93b210d2 100644 --- a/net/llc/llc_s_ac.c +++ b/net/llc/llc_s_ac.c | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #include <net/llc_s_ac.h> | 24 | #include <net/llc_s_ac.h> |
| 25 | #include <net/llc_s_ev.h> | 25 | #include <net/llc_s_ev.h> |
| 26 | #include <net/llc_sap.h> | 26 | #include <net/llc_sap.h> |
| 27 | #include "llc_output.h" | 27 | |
| 28 | 28 | ||
| 29 | /** | 29 | /** |
| 30 | * llc_sap_action_unit_data_ind - forward UI PDU to network layer | 30 | * llc_sap_action_unit_data_ind - forward UI PDU to network layer |
