lkml.org 
[lkml]   [2004]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: drivers/block/ub.c
    From
    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 <scott@timesys.com> 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.

    -Scott
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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