From: "H.J. Lu" <hjl.tools@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@kernel.org>,
alan.cox@intel.com, Thomas Gleixner <tglx@linutronix.de>,
tiwai@suse.de, perex@perex.cz, alsa-devel@alsa-project.org
Subject: [PATCH 2/2] Use __compat_aligned_s64 in uapi <sound/asound.h>
Date: Wed, 25 Dec 2013 09:17:46 -0800 [thread overview]
Message-ID: <20131225171746.GA1826@gmail.com> (raw)
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
reply other threads:[~2013-12-25 17:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131225171746.GA1826@gmail.com \
--to=hjl.tools@gmail.com \
--cc=alan.cox@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=perex@perex.cz \
--cc=tglx@linutronix.de \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.