lkml.org 
[lkml]   [2007]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/18] splice: abstract out actor data
    From
    Date
    On Tue, 2007-06-12 at 18:22 +0200, Jens Axboe wrote:
    > On Tue, Jun 12 2007, Eric Dumazet wrote:
    > > On Tue, 12 Jun 2007 08:57:57 +0200
    > > Jens Axboe <jens.axboe@oracle.com> wrote:
    > >
    > >
    > > > + struct splice_desc sd = {
    > > > + .total_len = len,
    > > > + .flags = flags,
    > > > + .pos = *ppos,
    > > > + };
    > > > +
    > > > + sd.file = out;
    > >
    > > minor remark, why sd.file is setup differently than other fields ?
    > >
    > > (this several times on this patch)
    >
    > yeah, it's inside an anonymous union, and apparently gcc doesn't like it
    > being initialized that way.

    The one time I had such a situation something along the lines of:

    struct splice_desc sd = {
    .total_len = len,
    .flags = flags,
    .pos = *ppos,
    { .file = out },
    };

    worked.

    -
    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: 2007-06-13 10:51    [W:0.021 / U:125.844 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site