From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: Jeff Garzik <jgarzik@pobox.com>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.5 IrDA] struct check
Date: Wed, 9 Jul 2003 16:49:44 -0700 [thread overview]
Message-ID: <20030709234944.GC12747@bougret.hpl.hp.com> (raw)
ir250_struct_check.diff :
~~~~~~~~~~~~~~~~~~~~~~~
<Suggested by Russell King>
o [FEATURE] Add struct size check for buggy compilers
diff -u -p linux/net/irda/irlap.d2.c linux/net/irda/irlap.c
--- linux/net/irda/irlap.d2.c Wed Jun 4 15:17:05 2003
+++ linux/net/irda/irlap.c Wed Jun 4 15:21:29 2003
@@ -79,6 +79,13 @@ int irlap_proc_read(char *, char **, off
int __init irlap_init(void)
{
+ /* Check if the compiler did its job properly.
+ * May happen on some ARM configuration, check with Russell King. */
+ ASSERT(sizeof(struct xid_frame) == 14, ;);
+ ASSERT(sizeof(struct test_frame) == 10, ;);
+ ASSERT(sizeof(struct ua_frame) == 10, ;);
+ ASSERT(sizeof(struct snrm_frame) == 11, ;);
+
/* Allocate master array */
irlap = hashbin_new(HB_LOCK);
if (irlap == NULL) {
reply other threads:[~2003-07-10 0:07 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=20030709234944.GC12747@bougret.hpl.hp.com \
--to=jt@bougret.hpl.hp.com \
--cc=jgarzik@pobox.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®