* [PATCH 2/2] Use __compat_aligned_s64 in uapi <sound/asound.h>
@ 2013-12-25 17:17 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2013-12-25 17:17 UTC (permalink / raw)
To: LKML, H. Peter Anvin, Ingo Molnar, alan.cox, Thomas Gleixner,
tiwai, perex, alsa-devel
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.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
include/uapi/sound/asound.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h
index e3983d5..ea6489c 100644
--- a/include/uapi/sound/asound.h
+++ b/include/uapi/sound/asound.h
@@ -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];
--
1.8.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-25 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25 17:17 [PATCH 2/2] Use __compat_aligned_s64 in uapi <sound/asound.h> H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).