From: Jiri Slaby Date: Mon, 26 May 2008 14:08:40 +0000 (+0200) Subject: i2c: Align i2c_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2548baa07ddf37ea8604e9627f042616d1cdc43e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git i2c: Align i2c_device_id Align i2c_device_id.driver_data to 8 bytes to not fail on crossbuilds. (Added in d2653e92732bd3911feff6bee5e23dbf959381db.) Signed-off-by: Jiri Slaby Signed-off-by: Jean Delvare --- diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index d73eceaa7afb..69b2342d5ebb 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -375,7 +375,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)))); };