A comment is definitely required: you must say *why* you are aligning
the structure (a clearer comment would be better, of course):
/* We return a pointer after the structure to the unwitting
caller: ensure safe alignment. */
The alignment of a structure member of type X is the alignment of type
X: this seems obvious to me. And "type X data[0];" is the standard
way of representing a variable struct.
Have we picked all the nits yet? 8)
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/