[PATCH 1/1] i2c: align i2c_device_id

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <khali@...>
Cc: <i2c@...>, <linux-kernel@...>, Jiri Slaby <jirislaby@...>
Date: Monday, May 19, 2008 - 9:18 am

Align i2c_device_id.driver_data to 8 bytes to not fail on crossbuilds.

(Added in d2653e92732bd3911feff6bee5e23dbf959381db.)

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Jean Delvare <khali@linux-fr.org>
---
 include/linux/mod_devicetable.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index a37db57..1fd03e7 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -384,7 +384,8 @@ struct virtio_device_id {
 
 struct i2c_device_id {
 	char name[I2C_NAME_SIZE];
-	kernel_ulong_t driver_data;	/* Data private to the driver */
+	kernel_ulong_t driver_data	/* Data private to the driver */
+			__attribute__((aligned(sizeof(kernel_ulong_t))));
 };
 
 
-- 
1.5.4.5

--
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)