wireless: gcc attribute short form for hermes
Hello,
I sent this first mail to the list, but had no feedback. Should I contact anyone directly?
Quoted 87 lines · Charles Clément
Hello kernel-janitors,
Changed calls in hermes driver to use the short defined gcc attribute macro.
Signed-off-by Charles Clément <[email protected]>---
I would be glad to be assigned that task on the TODO list, if someone is not currently working on it.
Thanks.Index:
linux-2.6.21-rc4/drivers/net/wireless/hermes.h=================================> ---linux-2.6.21-rc4.orig/drivers/net/wireless/hermes.h+++linux-2.6.21-rc4/drivers/net/wireless/hermes.h(quoted diff) +8
-8@@ -198,7 +198,7 @@ struct hermes_tx_descriptor { u8 retry_count; u8 tx_rate; __le16 tx_control; -} __attribute__ ((packed)); +} __packed; #define HERMES_TXSTAT_RETRYERR (0x0001) #define HERMES_TXSTAT_AGEDERR (0x0002)@@ -245,7 +245,7 @@ struct hermes_tallies_frame { /* Those last are probably not available in very old firmwares */ __le16 RxDiscards_WEPICVError; __le16 RxDiscards_WEPExcluded; -} __attribute__ ((packed)); +} __packed; /* Grabbed from wlan-ng - Thanks Mark... - Jean II * This is the result of a scan inquiry command */@@ -262,7 +262,7 @@ struct prism2_scan_apinfo { u8 rates[10]; /* Bit rate supported */ __le16 proberesp_rate; /* Data rate of the response frame */ __le16 atim; /* ATIM window time, Kus (hostscan only) */ -} __attribute__ ((packed)); +} __packed; /* Same stuff for the Lucent/Agere card. * Thanks to h1kari <h1kari AT dachb0den.com> - Jean II */@@ -276,7 +276,7 @@ struct agere_scan_apinfo { /* bits: 0-ess, 1-ibss, 4-privacy [wep] */ __le16 essid_len; /* ESSID length */ u8 essid[32]; /* ESSID of the network */ -} __attribute__ ((packed)); +} __packed; /* Moustafa: Scan structure for Symbol cards */ struct symbol_scan_apinfo {@@ -294,7 +294,7 @@ struct symbol_scan_apinfo { __le16 basic_rates; /* Basic rates bitmask */ u8 unknown2[6]; /* Always FF:FF:FF:FF:00:00 */ u8 unknown3[8]; /* Always 0, appeared in f/w 3.91-68 */ -} __attribute__ ((packed)); +} __packed; union hermes_scan_info { struct agere_scan_apinfo a;@@ -312,7 +312,7 @@ union hermes_scan_info { struct hermes_linkstatus { __le16 linkstatus; /* Link status */ -} __attribute__ ((packed)); +} __packed; struct hermes_response { u16 status, resp0, resp1, resp2;@@ -322,11 +322,11 @@ struct hermes_response { struct hermes_idstring { __le16 len; __le16 val[16]; -} __attribute__ ((packed)); +} __packed; struct hermes_multicast { u8 addr[HERMES_MAX_MULTICAST][ETH_ALEN]; -} __attribute__ ((packed)); +} __packed; /* Timeouts */ #define HERMES_BAP_BUSY_TIMEOUT (10000) /* In iterations of ~1us */_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
Signature · 5 lines
Charles Clément. _______________________________________________ Kernel-janitors mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
Quoted 10 lines · Charles Clément
Quoted 4 lines · Charles Clément
Hello kernel-janitors,
Changed calls in hermes driver to use the short defined gcc attribute macro.
Signed-off-by Charles Clément <[email protected]>Hello,
I sent this first mail to the list, but had no feedback. Should I contact anyone directly?
I don't have any objection. Do you want me to merge it? Or just let (who handles janitor patches now?) handle it?
John
Signature · 6 lines
John W. Linville [email protected] _______________________________________________ Kernel-janitors mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
Quoted 2 lines · Charles Clément
I sent this first mail to the list, but had no feedback. Should I contact anyone directly?
Looks like some of these packed attributes can be dropped altogether.
Quoted 67 lines · Charles Clément
Quoted 1 line
Changed calls in hermes driver to use the short defined gcc attribute
macro.
Quoted 63 lines
drivers/net/wireless/hermes.h +7
-7@@ -198,7 +198,7 @@ struct hermes_tx_descriptor {u8 retry_count;u8 tx_rate;__le16 tx_control; -} __attribute__ ((packed)); +} __packed;#define HERMES_TXSTAT_RETRYERR (0x0001)#define HERMES_TXSTAT_AGEDERR (0x0002)@@ -245,7 +245,7 @@ struct hermes_tallies_frame {/* Those last are probably not available in very old firmwares */ __le16 RxDiscards_WEPICVError;__le16 RxDiscards_WEPExcluded; -} __attribute__ ((packed)); +} __packed;/* Grabbed from wlan-ng - Thanks Mark... - Jean II * This is the result of a scan inquiry command */ @@ -262,7 +262,7 @@ struct prism2_scan_apinfo {u8 rates[10 ];/* Bit rate supported */ __le16 proberesp_rate;/* Data rate of the response frame */ __le16 atim;/* ATIM window time, Kus (hostscan only) */ -} __attribute__ ((packed)); +} __packed;/* Same stuff for the Lucent/Agere card. * Thanks to h1kari <h1kari AT dachb0den.com> - Jean II */ @@ -276,7 +276,7 @@ struct agere_scan_apinfo {/* bits: 0-ess, 1-ibss, 4-privacy [wep] */ __le16 essid_len;/* ESSID length */ u8 essid[32 ];/* ESSID of the network */ -} __attribute__ ((packed)); +} __packed;/* Moustafa: Scan structure for Symbol cards */ struct symbol_scan_apinfo {@@ -294,7 +294,7 @@ struct symbol_scan_apinfo {__le16 basic_rates;/* Basic rates bitmask */ u8 unknown2[6 ];/* Always FF:FF:FF:FF:00:00 */ u8 unknown3[8 ];/* Always 0, appeared in f/w 3.91-68 */ -} __attribute__ ((packed)); +} __packed;union hermes_scan_info {struct agere_scan_apinfo a;@@ -312,7 +312,7 @@ union hermes_scan_info {struct hermes_linkstatus {__le16 linkstatus;/* Link status */ -} __attribute__ ((packed)); +} __packed;struct hermes_response {u16 status, resp0, resp1, resp2;@@ -322,11 +322,11 @@ struct hermes_response {struct hermes_idstring {__le16 len;__le16 val[16 ]; -} __attribute__ ((packed)); +} __packed;
Quoted 4 lines
drivers/net/wireless/hermes.h struct hermes_response { · line 329
Quoted 4 lines
drivers/net/wireless/hermes.h +1
-1struct hermes_multicast {u8 addr[HERMES_MAX_MULTICAST ][ETH_ALEN ]; -} __attribute__ ((packed)); +} __packed;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
Quoted 7 lines · John W. Linville
Quoted 6 lines · Charles Clément
Quoted 4 lines · Charles Clément
Hello kernel-janitors,
Changed calls in hermes driver to use the short defined gcc attribute macro.
Signed-off-by Charles Clément <[email protected]>
Quoted 7 lines
Quoted 4 lines
Hello,
I sent this first mail to the list, but had no feedback. Should I contact anyone directly?
I don't have any objection. Do you want me to merge it? Or just let (who handles janitor patches now?) handle it?
Thank you, I don't know who does handle the janitor patch, the MAINTAINERS file says Several, but cite none of them.
Signature · 5 lines
Charles Clément. _______________________________________________ Kernel-janitors mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors