OSDN Git Service

ALSA: uapi: Fix sparse warning
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 29 Jan 2020 18:44:48 +0000 (10:44 -0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Jan 2020 20:00:51 +0000 (21:00 +0100)
commit46b770f720bdd8a7de1c04a1cab5d4e9e21d6666
treef6aa378dcb2988bfc107c39794938117f2dfbe97
parent7faa26c1bbe312d9191524e4b7ab010f91fcd654
ALSA: uapi: Fix sparse warning

Fix the following sparse warning generated due to
64-bit compat type having fields defined explicitly
with __s32:
sound/soc/sof/sof-audio.c:46:31: warning: incorrect type in assignment (different base types)
sound/soc/sof/sof-audio.c:46:31: expected restricted snd_pcm_state_t [usertype] state
sound/soc/sof/sof-audio.c:46:31: got signed int [usertype] state

Fixes: 80fe7430c708 ("ALSA: add new 32-bit layout for snd_pcm_mmap_status/control")
Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200129184448.3005-1-ranjani.sridharan@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/asound.h