From: Takashi Iwai Date: Tue, 31 Jul 2007 09:08:10 +0000 (+0200) Subject: [ALSA] hda-intel - Fix compile warning in snd_hwdep_ioctl_compat() X-Git-Tag: v2.6.24-rc1~832^2~223 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=312d045c75fc76e7de51520c3c1b6b5bec565cc9;p=linux-2.6 [ALSA] hda-intel - Fix compile warning in snd_hwdep_ioctl_compat() Fix missing cast: sound/pci/hda/hda_hwdep.c:86: warning: passing argument 4 of 'hda_hwdep_ioctl' makes integer from pointer without a cast Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c index 64be7b5334..bafb7b01f5 100644 --- a/sound/pci/hda/hda_hwdep.c +++ b/sound/pci/hda/hda_hwdep.c @@ -83,7 +83,7 @@ static int hda_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, static int hda_hwdep_ioctl_compat(struct snd_hwdep *hw, struct file *file, unsigned int cmd, unsigned long arg) { - return hda_hwdep_ioctl(hw, file, cmd, compat_ptr(arg)); + return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); } #endif