[lkml]   [2011]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] USB: ehci: use packed, aligned(4) instead of removing the packed attribute
    On Thu, 23 Jun 2011, Alexander Holler wrote:

    > Sorry, I never wanted to talk about the issue itself (I've already said
    > that), I just wanted to bring in some additional clarity for people
    > looking at the code.
    > I think if there is a packed,aligned(4) most people reading that are
    > able to imaging how the struct looks like, whereas nothing (without
    > packed) might leave doubts which than requires to read compiler docs or
    > the generated code, if one searches a problem in that area.

    I disagree. If there are no annotations at all (no packed), there
    should be no doubts. The compiler will add padding wherever it is
    needed for internal alignment and perhaps also at the end of the
    structure. Nowhere else.

    Alan Stern

     \ /
      Last update: 2011-06-23 16:27    [W:0.019 / U:4.576 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site