Skip to content

Commit

Permalink
ieee1394: raw1394: Add ioctl() for 32bit userland on 64bit kernel, am…
Browse files Browse the repository at this point in the history
…endment

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>
  • Loading branch information
Stefan Richter committed Jul 9, 2007
1 parent 650c12c commit 19f00e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/ieee1394/raw1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -2814,7 +2814,11 @@ struct raw1394_iso_packets32 {
struct raw1394_cycle_timer32 {
__u32 cycle_timer;
__u64 local_time;
} __attribute__((packed));
}
#if defined(CONFIG_X86_64) || defined(CONFIG_IA64)
__attribute__((packed))
#endif
;

#define RAW1394_IOC_ISO_RECV_PACKETS32 \
_IOW ('#', 0x25, struct raw1394_iso_packets32)
Expand Down

0 comments on commit 19f00e6

Please sign in to comment.