public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] i2c: align i2c_device_id
@ 2008-05-19 13:18 Jiri Slaby
  2008-05-19 13:40 ` Sam Ravnborg
  2008-05-19 19:00 ` Jean Delvare
  0 siblings, 2 replies; 5+ messages in thread
From: Jiri Slaby @ 2008-05-19 13:18 UTC (permalink / raw)
  To: khali; +Cc: i2c, linux-kernel, Jiri Slaby

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-20  4:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-19 13:18 [PATCH 1/1] i2c: align i2c_device_id Jiri Slaby
2008-05-19 13:40 ` Sam Ravnborg
2008-05-19 19:00 ` Jean Delvare
2008-05-19 19:20   ` Jiri Slaby
2008-05-20  4:25     ` [i2c] " Trent Piepho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox