Re: [PATCH 1/2] Add __compat_aligned_s64 and __compat_aligned_u64

2013-12-25 Thread H.J. Lu
ompat_aligned_u64; > +#endif Here is the updated patch. H.J. >From 42181ac3158ae8d0303ded5614ccb04105fe9251 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 21 Aug 2013 12:35:56 -0700 Subject: [PATCH 1/2] Add __compat_aligned_s64 and __compat_aligned_u64 X32 uses the 32-bit comp

[PATCH 1/2] Add __compat_aligned_s64 and __compat_aligned_u64

2013-12-25 Thread H.J. Lu
X32 uses the 32-bit compat layer for 32-bit kernel interface, which is also used by ia32. But long long is 4-byte aligned for ia32 and 8-byte aligned for x32. When the long long field in a system call struct has different offsets between ia32 and x32 due to alignment padding, like struct snd_ctl_

[PATCH 1/2] Add __compat_aligned_s64 and __compat_aligned_u64

2013-08-21 Thread H.J. Lu
X32 uses the 32-bit compat layer for 32-bit kernel interface, which is also used by ia32. But long long is 4-byte aligned for ia32 and 8-byte aligned for x32. When the long long field in a system call struct has different offsets between ia32 and x32 due to alignment padding, like struct snd_ctl_