[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20131225171746.GA1826@gmail.com>
Date: Wed, 25 Dec 2013 09:17:46 -0800
From: "H.J. Lu" <hjl.tools@...il.com>
To: LKML <linux-kernel@...r.kernel.org>,
"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...nel.org>,
alan.cox@...el.com, Thomas Gleixner <tglx@...utronix.de>,
tiwai@...e.de, perex@...ex.cz, alsa-devel@...a-project.org
Subject: [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.
Signed-off-by: H.J. Lu <hjl.tools@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists