All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH] ath9k: decrease size of ath9k.ko
@ 2010-02-27 16:56 ` tom.leiming
  0 siblings, 0 replies; 22+ messages in thread
From: tom.leiming at gmail.com @ 2010-02-27 16:56 UTC (permalink / raw)
  To: ath9k-devel

From: Ming Lei <tom.leiming@gmail.com>

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 at tom-lei ath9k]$ size ath9k.ko
   text    data     bss     dec     hex filename
  69344    3080     168   72592   11b90 ath9k.ko

new ath9k.ko
[tom at tom-lei ath9k]$ size ath9k.ko
   text    data     bss     dec     hex filename
  67304    3080     168   70552   11398 ath9k.ko

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 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 4f6d6fd..389168a 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 {
 	int rate_cnt;
 	int mcs_start;
 	struct {
-		int valid;
-		int valid_single_stream;
+		char valid;
+		char valid_single_stream;
 		u8 phy;
 		u32 ratekbps;
 		u32 user_ratekbps;
-- 
1.6.2.5

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2010-03-11  0:43 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-27 16:56 [ath9k-devel] [PATCH] ath9k: decrease size of ath9k.ko tom.leiming at gmail.com
2010-02-27 16:56 ` tom.leiming
2010-02-27 17:10 ` [ath9k-devel] " Larry Finger
2010-02-27 17:10   ` Larry Finger
2010-02-28  2:52   ` [ath9k-devel] " Ming Lei
2010-02-28  2:52     ` Ming Lei
2010-02-28  3:19     ` [ath9k-devel] " Larry Finger
2010-02-28  3:19       ` Larry Finger
2010-03-01 15:13       ` [ath9k-devel] " Ming Lei
2010-03-01 15:13         ` Ming Lei
2010-03-03  5:02         ` [ath9k-devel] " Pavel Roskin
2010-03-03  5:02           ` Pavel Roskin
2010-03-04  0:54           ` [ath9k-devel] " Luis R. Rodriguez
2010-03-04  0:54             ` Luis R. Rodriguez
2010-03-06 14:47           ` [ath9k-devel] " Ming Lei
2010-03-06 14:47             ` Ming Lei
2010-03-01 12:19     ` [ath9k-devel] " Holger Schurig
2010-03-01 12:19       ` Holger Schurig
2010-03-10 23:52 ` [ath9k-devel] [stable] " Greg KH
2010-03-10 23:52   ` Greg KH
2010-03-11  0:42   ` [ath9k-devel] " Luis R. Rodriguez
2010-03-11  0:42     ` Luis R. Rodriguez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.