All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] Bug?
@ 2006-07-24 15:08 Milind Dumbare
  2006-07-25  1:57 ` Lars Ellenberg
  0 siblings, 1 reply; 4+ messages in thread
From: Milind Dumbare @ 2006-07-24 15:08 UTC (permalink / raw)
  To: drbd-dev

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-25 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-24 15:08 [Drbd-dev] Bug? Milind Dumbare
2006-07-25  1:57 ` Lars Ellenberg
2006-07-25  9:11   ` Milind Dumbare
2006-07-25 21:49     ` Lars Ellenberg

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.