From: Milind Dumbare <milind.dumbare@gmail.com>
To: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] Bug?
Date: Mon, 24 Jul 2006 20:38:33 +0530 [thread overview]
Message-ID: <44C4E271.3080607@gmail.com> (raw)
Hi,
First of all to tell I am working on x86_64 machine.
The structure ioctl_get_config has size 576(bytes) and its padded with
int (4byte) so it makes 580 (bytes). And compiler will align it to 584
(bytes), as 580 is not completely divisible by 8 while 584 is.
So don't you think drbd_sizeof_sanity_check.c:21 should be
SZO(struct ioctl_get_config, 576)
rather than
SZO(struct ioctl_get_config, 580)
after removing padding. It will also be alligned on 32 bit compilers.
-Thanks
-Milind
next reply other threads:[~2006-07-24 15:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-24 15:08 Milind Dumbare [this message]
2006-07-25 1:57 ` [Drbd-dev] Bug? Lars Ellenberg
2006-07-25 9:11 ` Milind Dumbare
2006-07-25 21:49 ` Lars Ellenberg
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=44C4E271.3080607@gmail.com \
--to=milind.dumbare@gmail.com \
--cc=drbd-dev@lists.linbit.com \
/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.