[OLPC Networking] [PATCH 4/5] libertas: make some functions static

Arnd Bergmann arnd at arndb.de
Tue Jul 4 23:10:33 EDT 2006


These symbols neither declared nor called anywhere outside
the place where they are defined, so make them static.

Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Index: libertas/drivers/net/wireless/libertas/if_usb.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/if_usb.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/if_usb.c	2006-07-05 03:32:31.000000000 +0200
@@ -772,7 +772,7 @@
 	return WLAN_STATUS_SUCCESS;
 }
 
-int reset_device(wlan_private *priv)
+static int reset_device(wlan_private *priv)
 {
 	int ret;
 
Index: libertas/drivers/net/wireless/libertas/wlan_11d.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/wlan_11d.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/wlan_11d.c	2006-07-05 03:32:16.000000000 +0200
@@ -190,7 +190,7 @@
  *  @param parsed_region_chan   pointer to parsed_region_chan_11d
  *  @return 	                TRUE; FALSE
 */
-u8 wlan_channel_known_11d(u8 chan,
+static u8 wlan_channel_known_11d(u8 chan,
 			  struct parsed_region_chan_11d * parsed_region_chan)
 {
 	struct chan_power_11d *chanPwr = parsed_region_chan->chanPwr;
@@ -371,7 +371,7 @@
  *  @param chan                 chan
  *  @return 	                TRUE;FALSE
 */
-u8 wlan_region_chan_supported_11d(u8 region, u8 band, u8 chan)
+static u8 wlan_region_chan_supported_11d(u8 region, u8 band, u8 chan)
 {
 	struct chan_freq_power *cfp;
 	int cfp_no;
Index: libertas/drivers/net/wireless/libertas/wlan_cmd.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/wlan_cmd.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/wlan_cmd.c	2006-07-05 03:30:03.000000000 +0200
@@ -2154,7 +2154,7 @@
  *  @param size	   the size of command
  *  @return 	   WLAN_STATUS_SUCCESS or WLAN_STATUS_FAILURE
  */
-int SendConfirmSleep(wlan_private * priv, u8 * CmdPtr, u16 size)
+static int SendConfirmSleep(wlan_private * priv, u8 * CmdPtr, u16 size)
 {
 	unsigned long flags;
 	wlan_adapter *Adapter = priv->adapter;
Index: libertas/drivers/net/wireless/libertas/wlan_cmdresp.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/wlan_cmdresp.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/wlan_cmdresp.c	2006-07-05 03:30:34.000000000 +0200
@@ -744,7 +744,7 @@
  *  @param resp	   A pointer to HostCmd_DS_COMMAND
  *  @return 	   WLAN_STATUS_SUCCESS or WLAN_STATUS_FAILURE
  */
-int wlan_ret_802_11_eeprom_access(wlan_private * priv,
+static int wlan_ret_802_11_eeprom_access(wlan_private * priv,
 				  struct HostCmd_DS_COMMAND *resp)
 {
 	wlan_adapter *Adapter = priv->adapter;
Index: libertas/drivers/net/wireless/libertas/wlan_main.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/wlan_main.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/wlan_main.c	2006-07-05 03:27:31.000000000 +0200
@@ -1109,7 +1109,7 @@
  *  @param	   n/a    A pointer to wlan_private structure
  *  @return 	   WLAN_STATUS_SUCCESS or WLAN_STATUS_FAILURE
  */
-int wlan_init_module(void)
+static int wlan_init_module(void)
 {
 	int ret = WLAN_STATUS_SUCCESS;
 
@@ -1135,7 +1135,7 @@
  *  @param priv    n/a
  *  @return 	   n/a
  */
-void wlan_cleanup_module(void)
+static void wlan_cleanup_module(void)
 {
 	ENTER();
 
Index: libertas/drivers/net/wireless/libertas/wlan_rx.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/wlan_rx.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/wlan_rx.c	2006-07-05 03:29:05.000000000 +0200
@@ -298,7 +298,7 @@
  *  @param rate    Input rate
  *  @return 	   Output Rate (0 if invalid)
  */
-u8 convert_mv_rate_to_radiotap(u8 rate)
+static u8 convert_mv_rate_to_radiotap(u8 rate)
 {
 	switch (rate) {
 	case 0:		/*   1 Mbps */
Index: libertas/drivers/net/wireless/libertas/wlan_tx.c
===================================================================
--- libertas.orig/drivers/net/wireless/libertas/wlan_tx.c	2006-07-05 03:58:39.000000000 +0200
+++ libertas/drivers/net/wireless/libertas/wlan_tx.c	2006-07-05 03:29:31.000000000 +0200
@@ -44,7 +44,7 @@
  *  @param rate    Input rate
  *  @return      Output Rate (0 if invalid)
  */
-u32 convert_radiotap_rate_to_mv(u8 rate)
+static u32 convert_radiotap_rate_to_mv(u8 rate)
 {
 	switch (rate) {
 	case 2:		/*   1 Mbps */

--



More information about the Networking mailing list