Messages in this thread | | | Date | Mon, 28 Jun 2004 19:15:45 -0700 | From | "David S. Miller" <> | Subject | Re: drivers/block/ub.c |
| |
On Mon, 28 Jun 2004 18:54:46 -0700 "Robert White" <rwhite@casabyte.com> wrote:
> The below makes no sense to me... Nothing in the definition of struct bar{} (which > is not packed) infers (top me) in the slightest that foo should be unnaturally > aligned within it.
First of all, it is what the compiler does and has done since the __packed__ attribute was added.
Second of all, you are asking it to "PACK" the structure, this includes any place you place it within other data objects. It becomes an N-byte blob that has no alignment constraints must be placed exactly where it is declared.
I am growing very tired of this thread. - 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/
| |