diff options
author | Ming Lei <tom.leiming@gmail.com> | 2010-03-01 10:13:29 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-23 16:50:11 -0400 |
commit | e21247cc4a37296f57281a472e961ff09de0e98d (patch) | |
tree | 9fb840406c4f51db6edf804f2da08fc28efb3e43 /drivers | |
parent | d82689e249266d64cd37429c9e1ff6346e5446ab (diff) |
ath9k: decrease size of ath9k.ko
From e74b075cdb143d45be9b371ee8a8e2dcfc15ab34 Mon Sep 17 00:00:00 2001
From: Ming Lei <tom.leiming@gmail.com>
Date: Sat, 27 Feb 2010 23:50:54 +0800
Subject: [PATCH] ath9k: decrease size of ath9k.ko
The patch defines the fields of 'valid_single_stream' and 'valid' in
struct ath_rate_table as char type, so decrease the size of ath9k.ko
about 2KB.
old ath9k.ko
[tom@tom-lei ath9k]$ size ath9k.ko
text data bss dec hex filename
69344 3080 168 72592 11b90 ath9k.ko
new ath9k.ko
[tom@tom-lei ath9k]$ size ath9k.ko
text data bss dec hex filename
67304 3080 168 70552 11398 ath9k.ko
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.h b/drivers/net/wireless/ath/ath9k/rc.h index f4818e4fa4b0..36083dde863d 100644 --- a/drivers/net/wireless/ath/ath9k/rc.h +++ b/drivers/net/wireless/ath/ath9k/rc.h | |||
@@ -110,8 +110,8 @@ struct ath_rate_table { | |||
110 | int rate_cnt; | 110 | int rate_cnt; |
111 | int mcs_start; | 111 | int mcs_start; |
112 | struct { | 112 | struct { |
113 | int valid; | 113 | u8 valid; |
114 | int valid_single_stream; | 114 | u8 valid_single_stream; |
115 | u8 phy; | 115 | u8 phy; |
116 | u32 ratekbps; | 116 | u32 ratekbps; |
117 | u32 user_ratekbps; | 117 | u32 user_ratekbps; |