From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56EDC331220; Wed, 20 May 2026 17:29:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298190; cv=none; b=iY/SqrLcXfZutyEAPPShJeNqql2PmKZ6xgJAlEiDabYSIRGL+piBN/qfQew0r4wk5lce6u77sHRz5W8xhIoakbYggPRsQqBkr6ky+ZiFUvDKjPdjbhM7frluukYFtmAmzU0H2LTd8DpkcmU219JylRELBHuhpR59r3i7WQLODPA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779298190; c=relaxed/simple; bh=U7GhfzBoy4iJeafwoCpYNMet7JYFlaUunob7qtHDqxY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sE27a4brkHv3/Fwr5a1M3IhzQS6sJgayuOwVdUCqER6F4hj/I5GHJltlLzz+EyJV5t4EaAs15cEeg6sdbpD6Eoe1BxqQVGBoXfp7nbNZHAUJKQ4Cp1NIS7i/hJy4umjigrFUki5kjdLjoGEnk6TP71bipRsJgr+P/pxvetvglDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S125akIy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S125akIy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A0CD1F000E9; Wed, 20 May 2026 17:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779298189; bh=A3lDS8ymGEkvWAE/2pyhfzDf02YlJ0GLkdFrAFBZ7Wk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=S125akIyTQKaV4HZGgl0vdaIfLlVRA4gJ5u0hpvGiFKWFIykiEYtKwXa9yMU2eH92 7/9cBsDO5+AsE/S3o5s790hLEMF7hTHCWKDrwXuKxpHjpk3bZt38Y+0cZaeBUgAEHn yKnPbveRk6CzljJKmw4Wg33yxSpW61CC9ffpYpm0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , songxiebing , Takashi Iwai , Sasha Levin Subject: [PATCH 6.18 317/957] ALSA: usb-audio: qcom: Fix incorrect type in enable_audio_stream Date: Wed, 20 May 2026 18:13:20 +0200 Message-ID: <20260520162141.407427163@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162134.554764788@linuxfoundation.org> References: <20260520162134.554764788@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: songxiebing [ Upstream commit 292286b2d229fb732421429b027d38ac3f969383 ] Fix sparse warning: sound/usb/qcom/qc_audio_offload.c:943:27: sparse: incorrect type in argument 2 expected unsigned int val but got snd_pcm_format_t. Explicitly cast pcm_format to unsigned int for snd_mask_leave(). Fixes: 326bbc348298 ("ALSA: usb-audio: qcom: Introduce QC USB SND offloading support") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202604062109.Oxi8JjWW-lkp@intel.com/ Signed-off-by: songxiebing Link: https://patch.msgid.link/20260408083311.774173-1-songxiebing@kylinos.cn Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/usb/qcom/qc_audio_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/qcom/qc_audio_offload.c b/sound/usb/qcom/qc_audio_offload.c index 542eae3a57d9d..fc25e709ed4b2 100644 --- a/sound/usb/qcom/qc_audio_offload.c +++ b/sound/usb/qcom/qc_audio_offload.c @@ -948,7 +948,7 @@ static int enable_audio_stream(struct snd_usb_substream *subs, _snd_pcm_hw_params_any(¶ms); m = hw_param_mask(¶ms, SNDRV_PCM_HW_PARAM_FORMAT); - snd_mask_leave(m, pcm_format); + snd_mask_leave(m, (__force unsigned int)pcm_format); i = hw_param_interval(¶ms, SNDRV_PCM_HW_PARAM_CHANNELS); snd_interval_setinteger(i); -- 2.53.0