Commit 2548baa07ddf37ea8604e9627f042616d1cdc43e

Authored by Jiri Slaby
Committed by Jean Delvare
1 parent 7271e60a95

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 <jirislaby@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

include/linux/mod_devicetable.h
... ... @@ -375,7 +375,8 @@
375 375  
376 376 struct i2c_device_id {
377 377 char name[I2C_NAME_SIZE];
378   - kernel_ulong_t driver_data; /* Data private to the driver */
  378 + kernel_ulong_t driver_data /* Data private to the driver */
  379 + __attribute__((aligned(sizeof(kernel_ulong_t))));
379 380 };
380 381  
381 382