From: Ivo van Doorn <ivdoorn@gmail.com>
To: netdev@vger.kernel.org
Cc: rt2x00-devel@lfcorreia.dyndns.org
Subject: [PATCH 4/6] rt2x00 update: Remove packed attributes for structures that don't need it
Date: Fri, 28 Apr 2006 16:52:28 +0200 [thread overview]
Message-ID: <200604281652.28468.IvDoorn@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3264 bytes --]
From: Ivo van Doorn <IvDoorn@gmail.com>
Remove __attribute__ ((packed)) for structures that
are not being send to the device.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
diff -uprN wireless-dev-rt2x00/drivers/net/wireless/d80211/rt2x00/rt2x00.h wireless-dev-rt2x00-patch/drivers/net/wireless/d80211/rt2x00/rt2x00.h
--- wireless-dev-rt2x00/drivers/net/wireless/d80211/rt2x00/rt2x00.h 2006-04-28 15:09:53.000000000 +0200
+++ wireless-dev-rt2x00-patch/drivers/net/wireless/d80211/rt2x00/rt2x00.h 2006-04-28 15:50:06.000000000 +0200
@@ -324,12 +324,12 @@ extern int error_bitrange_bad;
struct rt2x00_field16{
u16 bit_offset;
u16 bit_mask;
-} __attribute__ ((packed));
+};
struct rt2x00_field32{
u32 bit_offset;
u32 bit_mask;
-} __attribute__ ((packed));
+};
/*
* Before intitializing the rt2x00_field# structures,
@@ -430,7 +430,7 @@ rt2x00_get_field16_nb(const u16 reg, con
struct _rt2x00_chip{
u16 rt;
u16 rf;
-} __attribute__ ((packed));
+};
/*
* Set chipset data.
@@ -511,7 +511,7 @@ struct data_ring{
*/
u16 data_size;
u16 desc_size;
-} __attribute__ ((packed));
+};
/*
* Handlers to determine the address of the current device specific
@@ -612,7 +612,7 @@ struct scanning{
short status;
#define SCANNING_READY 0x0001
#define SCANNING_CANCELLED 0x0002
-} __attribute__ ((packed));
+};
/*
diff -uprN wireless-dev-rt2x00/drivers/net/wireless/d80211/rt2x00/rt2x00pci.h wireless-dev-rt2x00-patch/drivers/net/wireless/d80211/rt2x00/rt2x00pci.h
--- wireless-dev-rt2x00/drivers/net/wireless/d80211/rt2x00/rt2x00pci.h 2006-04-28 15:09:45.000000000 +0200
+++ wireless-dev-rt2x00-patch/drivers/net/wireless/d80211/rt2x00/rt2x00pci.h 2006-04-28 15:49:18.000000000 +0200
@@ -72,7 +72,7 @@ struct rt2x00_button{
short button_status:1;
short active_poll:1;
short __pad:14;
-} __attribute__ ((packed));
+};
#endif /* CONFIG_RT2X00_BUTTON */
/*
@@ -106,7 +106,7 @@ struct data_entry{
*/
void *data_addr;
dma_addr_t data_dma;
-} __attribute__ ((packed));
+};
/*
* Device specific structure.
@@ -231,7 +231,7 @@ struct rt2x00_pci{
* after that the beacon and RX ring follow.
*/
struct data_ring *ring;
-} __attribute__ ((packed));
+};
static inline struct data_ring*
rt2x00pci_get_ring(struct rt2x00_pci *rt2x00pci, const int ring)
diff -uprN wireless-dev-rt2x00/drivers/net/wireless/d80211/rt2x00/rt2x00usb.h wireless-dev-rt2x00-patch/drivers/net/wireless/d80211/rt2x00/rt2x00usb.h
--- wireless-dev-rt2x00/drivers/net/wireless/d80211/rt2x00/rt2x00usb.h 2006-04-28 15:09:44.000000000 +0200
+++ wireless-dev-rt2x00-patch/drivers/net/wireless/d80211/rt2x00/rt2x00usb.h 2006-04-28 15:49:31.000000000 +0200
@@ -85,7 +85,7 @@ struct data_entry{
*/
void *data_addr;
dma_addr_t data_dma;
-} __attribute__ ((packed));
+};
/*
* The location of the descriptor is variating and depends
@@ -215,7 +215,7 @@ struct rt2x00_usb{
* after that the beacon and RX ring follow.
*/
struct data_ring *ring;
-} __attribute__ ((packed));
+};
static inline struct data_ring*
rt2x00usb_get_ring(struct rt2x00_usb *rt2x00usb, const int ring)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2006-04-28 14:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200604281652.28468.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rt2x00-devel@lfcorreia.dyndns.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.