[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87ednf0znt.wl-tiwai@suse.de>
Date: Wed, 17 May 2023 17:02:14 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Min-Hua Chen <minhuadotchen@...il.com>
Cc: Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: compat_ioctl: use correct snd_ctl_elem_type_t type
On Wed, 17 May 2023 00:38:05 +0200,
Min-Hua Chen wrote:
>
> SNDRV_CTL_ELEM_TYPE_* are type of snd_ctl_elem_type_t, we
> have to __force cast them to int when comparing them with int
> to fix the following sparse warnings.
>
> sound/core/control_compat.c:203:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:205:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:207:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:209:14: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:237:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:238:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:270:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
> sound/core/control_compat.c:271:21: sparse: warning: restricted snd_ctl_elem_type_t degrades to integer
>
> Signed-off-by: Min-Hua Chen <minhuadotchen@...il.com>
Thanks, applied.
Takashi
Powered by blists - more mailing lists