From: "John W. Linville" <linville@tuxdriver.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux@arm.linux.org.uk, deller@gmx.de, jt@hpl.hp.com,
rjw@sisk.pl, linux-wireless@vger.kernel.org,
linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: [PATCH] WAVELAN - compile-time check for struct sizes
Date: Thu, 7 Feb 2008 15:46:01 -0500 [thread overview]
Message-ID: <20080207204601.GD3025@tuxdriver.com> (raw)
In-Reply-To: <20080207120238.d169a0d2.akpm@linux-foundation.org>
On Thu, Feb 07, 2008 at 12:02:38PM -0800, Andrew Morton wrote:
> On Thu, 7 Feb 2008 14:08:42 -0500
> "John W. Linville" <linville@tuxdriver.com> wrote:
> > Subject: [PATCH] wavelan: mark hardware interfacing structures as packed
> ha_t is still triggering with this patch.
>
> This incremental patch:
<snip>
> fixes things up. If forces `union hacs_u' to be two bytes, not four.
OK, so I'll queue this one...'salright?
---
From: John W. Linville <linville@tuxdriver.com>
Subject: [PATCH] wavelan: mark hardware interfacing structures as packed
With assists from Russell King <rmk+kernel@arm.linux.org.uk> and
Andrew Morton <akpm@linux-foundation.org>...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
drivers/net/wireless/wavelan.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/wavelan.h b/drivers/net/wireless/wavelan.h
index 27172cd..9ab3605 100644
--- a/drivers/net/wireless/wavelan.h
+++ b/drivers/net/wireless/wavelan.h
@@ -85,7 +85,7 @@ union hacs_u
#define HASR_MMC_INTR 0x0002 /* Interrupt request from MMC */
#define HASR_MMC_BUSY 0x0004 /* MMC busy indication */
#define HASR_PSA_BUSY 0x0008 /* LAN parameter storage area busy */
-};
+} __attribute__ ((packed));
typedef struct ha_t ha_t;
struct ha_t
@@ -292,7 +292,7 @@ struct mmw_t
#define MMW_EXT_ANT_INTERNAL 0x00 /* Internal antenna */
#define MMW_EXT_ANT_EXTERNAL 0x03 /* External antenna */
#define MMW_EXT_ANT_IQ_TEST 0x1C /* IQ test pattern (set to 0) */
-};
+} __attribute__ ((packed));
#define MMW_SIZE 37
@@ -347,7 +347,7 @@ struct mmr_t
unsigned char mmr_unused4[1]; /* unused */
unsigned char mmr_fee_data_l; /* Read data from EEPROM (low) */
unsigned char mmr_fee_data_h; /* Read data from EEPROM (high) */
-};
+} __attribute__ ((packed));
#define MMR_SIZE 36
--
1.5.3.3
--
John W. Linville
linville@tuxdriver.com
next prev parent reply other threads:[~2008-02-07 21:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-13 14:16 [PATCH] WAVELAN - compile-time check for struct sizes Helge Deller
2008-02-03 6:45 ` Andrew Morton
2008-02-06 20:50 ` Helge Deller
2008-02-06 21:04 ` Andrew Morton
2008-02-06 21:47 ` Russell King - ARM Linux
2008-02-06 21:59 ` Andrew Morton
2008-02-07 15:51 ` John W. Linville
2008-02-07 16:06 ` Russell King - ARM Linux
2008-02-07 18:49 ` Andrew Morton
2008-02-07 19:08 ` John W. Linville
2008-02-07 19:50 ` Russell King - ARM Linux
2008-02-07 20:02 ` Andrew Morton
2008-02-07 20:46 ` John W. Linville [this message]
2008-02-07 21:27 ` Andrew Morton
2008-02-13 12:17 ` Rafael J. Wysocki
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=20080207204601.GD3025@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=akpm@linux-foundation.org \
--cc=deller@gmx.de \
--cc=jt@hpl.hp.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-wireless@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rjw@sisk.pl \
/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.