Re: [i2c] [PATCH 1/1] i2c: align i2c_device_id

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jiri Slaby <jirislaby@...>
Cc: Jean Delvare <khali@...>, <i2c@...>, <linux-kernel@...>
Date: Tuesday, May 20, 2008 - 12:25 am

On Mon, 19 May 2008, Jiri Slaby wrote:

Is there any more information about this?  Items in a structure should be
aligned to the alignment required by their type.  Usually sizeof(x) ==
alignof(x), but not always.

I guess in this case the structures are used as a cross-platform binary on
disk representation, and so the alignment of the build host must match the
alignment of the target?

Maybe it would be better to include the alignment attribute in the
definition of kernel_ulong_t?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] i2c: align i2c_device_id, Jiri Slaby, (Mon May 19, 9:18 am)
Re: [PATCH 1/1] i2c: align i2c_device_id, Jean Delvare, (Mon May 19, 3:00 pm)
Re: [PATCH 1/1] i2c: align i2c_device_id, Jiri Slaby, (Mon May 19, 3:20 pm)
Re: [i2c] [PATCH 1/1] i2c: align i2c_device_id, Trent Piepho, (Tue May 20, 12:25 am)
Re: [PATCH 1/1] i2c: align i2c_device_id, Sam Ravnborg, (Mon May 19, 9:40 am)