Skip to contentSkip to conversation

Bug#596478: [PATCH] ALSA: emux: Add trivial compat ioctl handler

PATCH Applied Ben Hutchings 2 participants 2 messages Sep 12, 2010 – Sep 14, 2010 Sound

lore
Share & tools
lore
#0 lore raw

---
This is compile-tested only.

Ben.

 sound/synth/emux/emux_hwdep.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/synth/emux/emux_hwdep.c +3 -0
index ff0b2a8..5ae1eae 100644
@@ -128,6 +128,9 @@ snd_emux_init_hwdep(struct snd_emux *emu)
 	strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
 	hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
 	hw->ops.ioctl = snd_emux_hwdep_ioctl;
+	/* The ioctl parameter types are compatible between 32- and
+	 * 64-bit architectures, so use the same function. */
+	hw->ops.ioctl_compat = snd_emux_hwdep_ioctl;
 	hw->exclusive = 1;
 	hw->private_data = emu;
 	if ((err = snd_card_register(emu->card)) < 0)
Signature · 1 line
1.7.1
Applied
#1 lore raw

Re: [PATCH] ALSA: emux: Add trivial compat ioctl handler

At Sun, 12 Sep 2010 02:41:47 +0100,

Quoted 5 lines · Ben Hutchings

---
This is compile-tested only.

Thanks, applied now.

Takashi

Quoted 24 lines

Ben.

 sound/synth/emux/emux_hwdep.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/synth/emux/emux_hwdep.c +3 -0
index ff0b2a8..5ae1eae 100644
@@ -128,6 +128,9 @@ snd_emux_init_hwdep(struct snd_emux *emu)
 	strcpy(hw->name, SNDRV_EMUX_HWDEP_NAME);
 	hw->iface = SNDRV_HWDEP_IFACE_EMUX_WAVETABLE;
 	hw->ops.ioctl = snd_emux_hwdep_ioctl;
+	/* The ioctl parameter types are compatible between 32- and
+	 * 64-bit architectures, so use the same function. */
+	hw->ops.ioctl_compat = snd_emux_hwdep_ioctl;
 	hw->exclusive = 1;
 	hw->private_data = emu;
 	if ((err = snd_card_register(emu->card)) < 0)
Signature · 1 line
1.7.1