[lkml]   [2004]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: drivers/block/ub.c
    On Mon, Jun 28, 2004 at 03:22:08PM -0700, David S. Miller wrote:
    > On Mon, 28 Jun 2004 17:18:57 -0400
    > Scott Wood <> wrote:
    > > As long as bar is not packed, why shouldn't the beginning of bar.b be
    > > aligned?
    > No! bar.b starts at offset 1 byte. That's how this stuff works.

    That may be how it does work, but why is that how it *should* work?
    If I want bar packed, I'll specify it as packed. There's no reason
    to keep this behavior with a nopadding attribute, as it would be a
    new attribute with no existing code to break.

    The important thing is that the offsets within the packed/nopadding
    struct are exactly as specified, and padding the first element
    doesn't change that.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:04    [W:0.020 / U:3.344 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site