OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7271e60
)
i2c: Align i2c_device_id
author
Jiri Slaby
<jirislaby@gmail.com>
Mon, 26 May 2008 14:08:40 +0000
(16:08 +0200)
committer
Jean Delvare
<khali@hyperion.delvare>
Mon, 26 May 2008 14:08:40 +0000
(16:08 +0200)
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>
include/linux/mod_devicetable.h
patch
|
blob
|
history
diff --git
a/include/linux/mod_devicetable.h
b/include/linux/mod_devicetable.h
index
d73ecea
..
69b2342
100644
(file)
--- 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))));
};