aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-10-23 14:47:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-23 14:47:02 -0400
commit5f05647dd81c11a6a165ccc8f0c1370b16f3bcb0 (patch)
tree7851ef1c93aa1aba7ef327ca4b75fd35e6d10f29 /drivers/net/wimax
parent02f36038c568111ad4fc433f6fa760ff5e38fab4 (diff)
parentec37a48d1d16c30b655ac5280209edf52a6775d4 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1699 commits) bnx2/bnx2x: Unsupported Ethtool operations should return -EINVAL. vlan: Calling vlan_hwaccel_do_receive() is always valid. tproxy: use the interface primary IP address as a default value for --on-ip tproxy: added IPv6 support to the socket match cxgb3: function namespace cleanup tproxy: added IPv6 support to the TPROXY target tproxy: added IPv6 socket lookup function to nf_tproxy_core be2net: Changes to use only priority codes allowed by f/w tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is enabled tproxy: added tproxy sockopt interface in the IPV6 layer tproxy: added udp6_lib_lookup function tproxy: added const specifiers to udp lookup functions tproxy: split off ipv6 defragmentation to a separate module l2tp: small cleanup nf_nat: restrict ICMP translation for embedded header can: mcp251x: fix generation of error frames can: mcp251x: fix endless loop in interrupt handler if CANINTF_MERRF is set can-raw: add msg_flags to distinguish local traffic 9p: client code cleanup rds: make local functions/variables static ... Fix up conflicts in net/core/dev.c, drivers/net/pcmcia/smc91c92_cs.c and drivers/net/wireless/ath/ath9k/debug.c as per David
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r--drivers/net/wimax/i2400m/control.c18
-rw-r--r--drivers/net/wimax/i2400m/driver.c2
-rw-r--r--drivers/net/wimax/i2400m/i2400m-sdio.h1
-rw-r--r--drivers/net/wimax/i2400m/i2400m.h9
-rw-r--r--drivers/net/wimax/i2400m/rx.c2
-rw-r--r--drivers/net/wimax/i2400m/sdio-rx.c2
6 files changed, 11 insertions, 23 deletions
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c
index 9fb03082153a..12b84ed0e38a 100644
--- a/drivers/net/wimax/i2400m/control.c
+++ b/drivers/net/wimax/i2400m/control.c
@@ -98,7 +98,7 @@ MODULE_PARM_DESC(power_save_disabled,
98 "False by default (so the device is told to do power " 98 "False by default (so the device is told to do power "
99 "saving)."); 99 "saving).");
100 100
101int i2400m_passive_mode; /* 0 (passive mode disabled) by default */ 101static int i2400m_passive_mode; /* 0 (passive mode disabled) by default */
102module_param_named(passive_mode, i2400m_passive_mode, int, 0644); 102module_param_named(passive_mode, i2400m_passive_mode, int, 0644);
103MODULE_PARM_DESC(passive_mode, 103MODULE_PARM_DESC(passive_mode,
104 "If true, the driver will not do any device setup " 104 "If true, the driver will not do any device setup "
@@ -558,8 +558,9 @@ void i2400m_report_hook(struct i2400m *i2400m,
558 * processing should be done in the function that calls the 558 * processing should be done in the function that calls the
559 * command. This is here for some cases where it can't happen... 559 * command. This is here for some cases where it can't happen...
560 */ 560 */
561void i2400m_msg_ack_hook(struct i2400m *i2400m, 561static void i2400m_msg_ack_hook(struct i2400m *i2400m,
562 const struct i2400m_l3l4_hdr *l3l4_hdr, size_t size) 562 const struct i2400m_l3l4_hdr *l3l4_hdr,
563 size_t size)
563{ 564{
564 int result; 565 int result;
565 struct device *dev = i2400m_dev(i2400m); 566 struct device *dev = i2400m_dev(i2400m);
@@ -1135,7 +1136,7 @@ error_alloc:
1135 * i2400m_report_state_hook() to parse the answer. This will set the 1136 * i2400m_report_state_hook() to parse the answer. This will set the
1136 * carrier state, as well as the RF Kill switches state. 1137 * carrier state, as well as the RF Kill switches state.
1137 */ 1138 */
1138int i2400m_cmd_get_state(struct i2400m *i2400m) 1139static int i2400m_cmd_get_state(struct i2400m *i2400m)
1139{ 1140{
1140 int result; 1141 int result;
1141 struct device *dev = i2400m_dev(i2400m); 1142 struct device *dev = i2400m_dev(i2400m);
@@ -1177,8 +1178,6 @@ error_msg_to_dev:
1177error_alloc: 1178error_alloc:
1178 return result; 1179 return result;
1179} 1180}
1180EXPORT_SYMBOL_GPL(i2400m_cmd_get_state);
1181
1182 1181
1183/** 1182/**
1184 * Set basic configuration settings 1183 * Set basic configuration settings
@@ -1190,8 +1189,9 @@ EXPORT_SYMBOL_GPL(i2400m_cmd_get_state);
1190 * right endianess (LE). 1189 * right endianess (LE).
1191 * @arg_size: number of pointers in the @args array 1190 * @arg_size: number of pointers in the @args array
1192 */ 1191 */
1193int i2400m_set_init_config(struct i2400m *i2400m, 1192static int i2400m_set_init_config(struct i2400m *i2400m,
1194 const struct i2400m_tlv_hdr **arg, size_t args) 1193 const struct i2400m_tlv_hdr **arg,
1194 size_t args)
1195{ 1195{
1196 int result; 1196 int result;
1197 struct device *dev = i2400m_dev(i2400m); 1197 struct device *dev = i2400m_dev(i2400m);
@@ -1258,8 +1258,6 @@ none:
1258 return result; 1258 return result;
1259 1259
1260} 1260}
1261EXPORT_SYMBOL_GPL(i2400m_set_init_config);
1262
1263 1261
1264/** 1262/**
1265 * i2400m_set_idle_timeout - Set the device's idle mode timeout 1263 * i2400m_set_idle_timeout - Set the device's idle mode timeout
diff --git a/drivers/net/wimax/i2400m/driver.c b/drivers/net/wimax/i2400m/driver.c
index 9c8b78d4abd2..cdedab46ba21 100644
--- a/drivers/net/wimax/i2400m/driver.c
+++ b/drivers/net/wimax/i2400m/driver.c
@@ -122,7 +122,7 @@ struct i2400m_work *__i2400m_work_setup(
122 * works struct was already queued, but we have just allocated it, so 122 * works struct was already queued, but we have just allocated it, so
123 * it should not happen. 123 * it should not happen.
124 */ 124 */
125int i2400m_schedule_work(struct i2400m *i2400m, 125static int i2400m_schedule_work(struct i2400m *i2400m,
126 void (*fn)(struct work_struct *), gfp_t gfp_flags, 126 void (*fn)(struct work_struct *), gfp_t gfp_flags,
127 const void *pl, size_t pl_size) 127 const void *pl, size_t pl_size)
128{ 128{
diff --git a/drivers/net/wimax/i2400m/i2400m-sdio.h b/drivers/net/wimax/i2400m/i2400m-sdio.h
index 360d4fb195f4..1d63ffdedfde 100644
--- a/drivers/net/wimax/i2400m/i2400m-sdio.h
+++ b/drivers/net/wimax/i2400m/i2400m-sdio.h
@@ -140,7 +140,6 @@ void i2400ms_init(struct i2400ms *i2400ms)
140 140
141extern int i2400ms_rx_setup(struct i2400ms *); 141extern int i2400ms_rx_setup(struct i2400ms *);
142extern void i2400ms_rx_release(struct i2400ms *); 142extern void i2400ms_rx_release(struct i2400ms *);
143extern ssize_t __i2400ms_rx_get_size(struct i2400ms *);
144 143
145extern int i2400ms_tx_setup(struct i2400ms *); 144extern int i2400ms_tx_setup(struct i2400ms *);
146extern void i2400ms_tx_release(struct i2400ms *); 145extern void i2400ms_tx_release(struct i2400ms *);
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h
index fa74777fd65f..59ac7705e76e 100644
--- a/drivers/net/wimax/i2400m/i2400m.h
+++ b/drivers/net/wimax/i2400m/i2400m.h
@@ -910,28 +910,19 @@ struct i2400m_work {
910 u8 pl[0]; 910 u8 pl[0];
911}; 911};
912 912
913extern int i2400m_schedule_work(struct i2400m *,
914 void (*)(struct work_struct *), gfp_t,
915 const void *, size_t);
916
917extern int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *, 913extern int i2400m_msg_check_status(const struct i2400m_l3l4_hdr *,
918 char *, size_t); 914 char *, size_t);
919extern int i2400m_msg_size_check(struct i2400m *, 915extern int i2400m_msg_size_check(struct i2400m *,
920 const struct i2400m_l3l4_hdr *, size_t); 916 const struct i2400m_l3l4_hdr *, size_t);
921extern struct sk_buff *i2400m_msg_to_dev(struct i2400m *, const void *, size_t); 917extern struct sk_buff *i2400m_msg_to_dev(struct i2400m *, const void *, size_t);
922extern void i2400m_msg_to_dev_cancel_wait(struct i2400m *, int); 918extern void i2400m_msg_to_dev_cancel_wait(struct i2400m *, int);
923extern void i2400m_msg_ack_hook(struct i2400m *,
924 const struct i2400m_l3l4_hdr *, size_t);
925extern void i2400m_report_hook(struct i2400m *, 919extern void i2400m_report_hook(struct i2400m *,
926 const struct i2400m_l3l4_hdr *, size_t); 920 const struct i2400m_l3l4_hdr *, size_t);
927extern void i2400m_report_hook_work(struct work_struct *); 921extern void i2400m_report_hook_work(struct work_struct *);
928extern int i2400m_cmd_enter_powersave(struct i2400m *); 922extern int i2400m_cmd_enter_powersave(struct i2400m *);
929extern int i2400m_cmd_get_state(struct i2400m *);
930extern int i2400m_cmd_exit_idle(struct i2400m *); 923extern int i2400m_cmd_exit_idle(struct i2400m *);
931extern struct sk_buff *i2400m_get_device_info(struct i2400m *); 924extern struct sk_buff *i2400m_get_device_info(struct i2400m *);
932extern int i2400m_firmware_check(struct i2400m *); 925extern int i2400m_firmware_check(struct i2400m *);
933extern int i2400m_set_init_config(struct i2400m *,
934 const struct i2400m_tlv_hdr **, size_t);
935extern int i2400m_set_idle_timeout(struct i2400m *, unsigned); 926extern int i2400m_set_idle_timeout(struct i2400m *, unsigned);
936 927
937static inline 928static inline
diff --git a/drivers/net/wimax/i2400m/rx.c b/drivers/net/wimax/i2400m/rx.c
index 1737d1488b35..844133b44af0 100644
--- a/drivers/net/wimax/i2400m/rx.c
+++ b/drivers/net/wimax/i2400m/rx.c
@@ -922,7 +922,7 @@ void i2400m_roq_queue_update_ws(struct i2400m *i2400m, struct i2400m_roq *roq,
922 * rx_roq_refcount becomes zero. This routine gets executed when 922 * rx_roq_refcount becomes zero. This routine gets executed when
923 * rx_roq_refcount becomes zero. 923 * rx_roq_refcount becomes zero.
924 */ 924 */
925void i2400m_rx_roq_destroy(struct kref *ref) 925static void i2400m_rx_roq_destroy(struct kref *ref)
926{ 926{
927 unsigned itr; 927 unsigned itr;
928 struct i2400m *i2400m 928 struct i2400m *i2400m
diff --git a/drivers/net/wimax/i2400m/sdio-rx.c b/drivers/net/wimax/i2400m/sdio-rx.c
index 8b809c2ead6c..fb6396dd115f 100644
--- a/drivers/net/wimax/i2400m/sdio-rx.c
+++ b/drivers/net/wimax/i2400m/sdio-rx.c
@@ -87,7 +87,7 @@ static const __le32 i2400m_ACK_BARKER[4] = {
87 * 87 *
88 * sdio_readl() doesn't work. 88 * sdio_readl() doesn't work.
89 */ 89 */
90ssize_t __i2400ms_rx_get_size(struct i2400ms *i2400ms) 90static ssize_t __i2400ms_rx_get_size(struct i2400ms *i2400ms)
91{ 91{
92 int ret, cnt, val; 92 int ret, cnt, val;
93 ssize_t rx_size; 93 ssize_t rx_size;