Skip to content

Commit 2a6eca1

Browse files
arndbtiwai
authored andcommitted
ALSA: make snd_kcontrol_new name a normal string
When building with W=2, there are lots of warnings about the snd_kcontrol_new name field being an array of 'unsigned char' but initialized to a string: include/sound/soc.h:93:48: warning: pointer targets in initialization of 'const unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] Make it a regular 'char *' to avoid flooding the build log with this. Fixes: 1da177e ("Linux-2.6.12-rc2") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20201026165715.3723704-1-arnd@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent f7b6603 commit 2a6eca1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/sound/control.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct snd_kcontrol_new {
4242
snd_ctl_elem_iface_t iface; /* interface identifier */
4343
unsigned int device; /* device/client number */
4444
unsigned int subdevice; /* subdevice (substream) number */
45-
const unsigned char *name; /* ASCII name of item */
45+
const char *name; /* ASCII name of item */
4646
unsigned int index; /* index of item */
4747
unsigned int access; /* access rights */
4848
unsigned int count; /* count of same elements */

0 commit comments

Comments
 (0)