OSDN Git Service

[ALSA] hda-intel - Fix compile warning in snd_hwdep_ioctl_compat()
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jul 2007 09:08:10 +0000 (11:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:58:16 +0000 (15:58 +0200)
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 <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/hda_hwdep.c

index 64be7b5..bafb7b0 100644 (file)
@@ -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