Skip to contentSkip to conversation

Use __compat_aligned_s64 in uapi <sound/asound.h>

PATCH In review H.J. Lu 1 participant 1 message Dec 25, 2013 Sound

lore
Share & tools
lore

H.J. Lu

author
#0 lore raw

PATCH 2/2 Use __compat_aligned_s64 in uapi <sound/asound.h>

The integer64 field in struct snd_ctl_elem_value has different offsets, depending the alignment of long long. This patch replaces long long with the newly introduced __compat_aligned_s64 so that x32 and ia32 can use the same compat system call for struct snd_ctl_elem_value.

---
 include/uapi/sound/asound.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/sound/asound.h +2 -2
index e3983d5..ea6489c 100644
@@ -877,8 +877,8 @@ struct snd_ctl_elem_value {
 			long *value_ptr;	/* obsoleted */
 		} integer;
 		union {
-			long long value[64];
-			long long *value_ptr;	/* obsoleted */
+			__compat_aligned_s64 value[64];
+			__compat_aligned_s64 *value_ptr;	/* obsoleted */
 		} integer64;
 		union {
 			unsigned int item[128];
Signature · 1 line
1.8.1.4