aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-05-21 12:52:06 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-07-09 18:07:38 -0400
commit19f00e66f8aa7ee581c6d003fd68ee9f9dee4057 (patch)
treea0cdacff1f3b06387b8c50f1c0366db236285a3d /drivers
parent650c12c528d3e0ac69405dd35d3bc8a7228e49f2 (diff)
ieee1394: raw1394: Add ioctl() for 32bit userland on 64bit kernel, amendment
Pointed out by Arnd Bergmann: PPC32 aligns this at 64bit, IA32 packs it. A kernel-wide available __compat_u64 which is 4-byte aligned on AMD64 and IA64 would be nicer though. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ieee1394/raw1394.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c
index 151a48f41c8f..7b5aeb39ad85 100644
--- a/drivers/ieee1394/raw1394.c
+++ b/drivers/ieee1394/raw1394.c
@@ -2814,7 +2814,11 @@ struct raw1394_iso_packets32 {
2814struct raw1394_cycle_timer32 { 2814struct raw1394_cycle_timer32 {
2815 __u32 cycle_timer; 2815 __u32 cycle_timer;
2816 __u64 local_time; 2816 __u64 local_time;
2817} __attribute__((packed)); 2817}
2818#if defined(CONFIG_X86_64) || defined(CONFIG_IA64)
2819__attribute__((packed))
2820#endif
2821;
2818 2822
2819#define RAW1394_IOC_ISO_RECV_PACKETS32 \ 2823#define RAW1394_IOC_ISO_RECV_PACKETS32 \
2820 _IOW ('#', 0x25, struct raw1394_iso_packets32) 2824 _IOW ('#', 0x25, struct raw1394_iso_packets32)