]> Git Repo - linux.git/commit
ALSA: uapi: Fix sparse warning
authorRanjani Sridharan <[email protected]>
Wed, 29 Jan 2020 18:44:48 +0000 (10:44 -0800)
committerTakashi Iwai <[email protected]>
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 <[email protected]>
Suggested-by: Takashi Iwai <[email protected]>
Signed-off-by: Ranjani Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
include/uapi/sound/asound.h
This page took 0.051813 seconds and 4 git commands to generate.