[PATCH] Unlinline a bunch of other functions
Remove the "inline" keyword from a bunch of big functions in the kernel with the goal of shrinking it by 30kb to 40kb Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Acked-by: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b0a9499c3d
commit
858119e159
@@ -62,7 +62,7 @@ MODULE_DESCRIPTION(DRV_DESCRIPTION);
|
||||
MODULE_AUTHOR(DRV_COPYRIGHT);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee)
|
||||
static int ieee80211_networks_allocate(struct ieee80211_device *ieee)
|
||||
{
|
||||
if (ieee->networks)
|
||||
return 0;
|
||||
@@ -90,7 +90,7 @@ static inline void ieee80211_networks_free(struct ieee80211_device *ieee)
|
||||
ieee->networks = NULL;
|
||||
}
|
||||
|
||||
static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee)
|
||||
static void ieee80211_networks_initialize(struct ieee80211_device *ieee)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <net/ieee80211.h>
|
||||
|
||||
static inline void ieee80211_monitor_rx(struct ieee80211_device *ieee,
|
||||
static void ieee80211_monitor_rx(struct ieee80211_device *ieee,
|
||||
struct sk_buff *skb,
|
||||
struct ieee80211_rx_stats *rx_stats)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ static int ieee80211_frag_cache_invalidate(struct ieee80211_device *ieee,
|
||||
* Responsible for handling management control frames
|
||||
*
|
||||
* Called by ieee80211_rx */
|
||||
static inline int
|
||||
static int
|
||||
ieee80211_rx_frame_mgmt(struct ieee80211_device *ieee, struct sk_buff *skb,
|
||||
struct ieee80211_rx_stats *rx_stats, u16 type,
|
||||
u16 stype)
|
||||
@@ -266,7 +266,7 @@ static int ieee80211_is_eapol_frame(struct ieee80211_device *ieee,
|
||||
}
|
||||
|
||||
/* Called only as a tasklet (software IRQ), by ieee80211_rx */
|
||||
static inline int
|
||||
static int
|
||||
ieee80211_rx_frame_decrypt(struct ieee80211_device *ieee, struct sk_buff *skb,
|
||||
struct ieee80211_crypt_data *crypt)
|
||||
{
|
||||
@@ -297,7 +297,7 @@ ieee80211_rx_frame_decrypt(struct ieee80211_device *ieee, struct sk_buff *skb,
|
||||
}
|
||||
|
||||
/* Called only as a tasklet (software IRQ), by ieee80211_rx */
|
||||
static inline int
|
||||
static int
|
||||
ieee80211_rx_frame_decrypt_msdu(struct ieee80211_device *ieee,
|
||||
struct sk_buff *skb, int keyidx,
|
||||
struct ieee80211_crypt_data *crypt)
|
||||
@@ -1156,7 +1156,7 @@ static int ieee80211_handle_assoc_resp(struct ieee80211_device *ieee, struct iee
|
||||
|
||||
/***************************************************/
|
||||
|
||||
static inline int ieee80211_network_init(struct ieee80211_device *ieee, struct ieee80211_probe_response
|
||||
static int ieee80211_network_init(struct ieee80211_device *ieee, struct ieee80211_probe_response
|
||||
*beacon,
|
||||
struct ieee80211_network *network,
|
||||
struct ieee80211_rx_stats *stats)
|
||||
@@ -1235,7 +1235,7 @@ static inline int is_same_network(struct ieee80211_network *src,
|
||||
!memcmp(src->ssid, dst->ssid, src->ssid_len));
|
||||
}
|
||||
|
||||
static inline void update_network(struct ieee80211_network *dst,
|
||||
static void update_network(struct ieee80211_network *dst,
|
||||
struct ieee80211_network *src)
|
||||
{
|
||||
int qos_active;
|
||||
@@ -1294,7 +1294,7 @@ static inline int is_beacon(int fc)
|
||||
return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON);
|
||||
}
|
||||
|
||||
static inline void ieee80211_process_probe_response(struct ieee80211_device
|
||||
static void ieee80211_process_probe_response(struct ieee80211_device
|
||||
*ieee, struct
|
||||
ieee80211_probe_response
|
||||
*beacon, struct ieee80211_rx_stats
|
||||
|
@@ -127,7 +127,7 @@ payload of each frame is reduced to 492 bytes.
|
||||
static u8 P802_1H_OUI[P80211_OUI_LEN] = { 0x00, 0x00, 0xf8 };
|
||||
static u8 RFC1042_OUI[P80211_OUI_LEN] = { 0x00, 0x00, 0x00 };
|
||||
|
||||
static inline int ieee80211_copy_snap(u8 * data, u16 h_proto)
|
||||
static int ieee80211_copy_snap(u8 * data, u16 h_proto)
|
||||
{
|
||||
struct ieee80211_snap_hdr *snap;
|
||||
u8 *oui;
|
||||
@@ -150,7 +150,7 @@ static inline int ieee80211_copy_snap(u8 * data, u16 h_proto)
|
||||
return SNAP_SIZE + sizeof(u16);
|
||||
}
|
||||
|
||||
static inline int ieee80211_encrypt_fragment(struct ieee80211_device *ieee,
|
||||
static int ieee80211_encrypt_fragment(struct ieee80211_device *ieee,
|
||||
struct sk_buff *frag, int hdr_len)
|
||||
{
|
||||
struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx];
|
||||
|
@@ -42,7 +42,7 @@ static const char *ieee80211_modes[] = {
|
||||
};
|
||||
|
||||
#define MAX_CUSTOM_LEN 64
|
||||
static inline char *ipw2100_translate_scan(struct ieee80211_device *ieee,
|
||||
static char *ipw2100_translate_scan(struct ieee80211_device *ieee,
|
||||
char *start, char *stop,
|
||||
struct ieee80211_network *network)
|
||||
{
|
||||
|
Reference in New Issue
Block a user