]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: remove compilation warning on 32-bit
authorOlof Johansson <olof@lixom.net>
Sat, 5 Nov 2011 21:51:54 +0000 (22:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 6 Nov 2011 10:22:15 +0000 (11:22 +0100)
commit4b57b9b58cde661f1e209c8161391022805fd343
tree1c01135b128773dba25eb4c0b187bdada20d1eb4
parent2be82e2344f22cd266d4e245efc561cbf70da58d
ALSA: control: remove compilation warning on 32-bit

This was introduced by 'ALSA: control: add support for ENUMERATED user
space controls' which adds a u64 variable that gets cast to a pointer:

sound/core/control.c: In function 'snd_ctl_elem_init_enum_names':
sound/core/control.c:1089: warning: cast to pointer from integer of different size

Cast to uintptr_t before casting to pointer to avoid the warning.

Signed-off-by: Olof Johansson <olof@lixom.net>
[cl: replace long with uintptr_t]
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c