Re: [PATCH] drivers: staging: lustre: lustre: include: add"__attribute__((packed))" for the related union

From: Dan Carpenter
Date: Mon Jan 20 2014 - 08:02:06 EST


Are you sure it's padding the unions, and not just treating the unions
as structs? What is the size of this union?

union a {
int x;
short y;
};

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