Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2882060rwb; Mon, 15 Aug 2022 13:13:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5uR1h95F1XAaoQ/s+Y17s5Nv6ZBf4TkWz3P8MfzdDrPLQ8W8YmGPDdNchAzxikdcbFInmB X-Received: by 2002:a17:907:69b0:b0:730:a1f0:63e7 with SMTP id ra48-20020a17090769b000b00730a1f063e7mr11123502ejc.364.1660594439093; Mon, 15 Aug 2022 13:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594439; cv=none; d=google.com; s=arc-20160816; b=zbPfPwRPkw/rM2YUkitenagLmKv0ito8IwHgdCuBeuN9jFbzchoY+1ruejYNHHZwpq bfyCg+nbvZYU/D8XPgI7S+wC2l87ZWCz2Kk8U0FnkPXi1Koh9DjAVYaly54pLcq4//dY AkJZYid44vW829bMBVypCDLIUHPI5rxB4ILPdX4eL5x9frt46IaWnQBNTp/QACd/2L+h wO8bO6Y0AOJtxKOB7HwvBd3QNGmYSImlnWgf/j5km96vyo/81NAeNqPm5Hc4Iec9tS03 KI5k4yAC7/gOzu6xLKIgl7T3wEnA0k8FDSG9FgQ/OU725KjsrcRf5Ix26TQ31qH+iqFV qVcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2poIEiB6FiNfU8aeaPurPE5xypTPs+oaV3kw7vjjJoM=; b=zgdk+SzLNtaKmwAsXzzD5QE1+xeBb01CFxNpMDtNQXmI1BtUZJKE9bDQEBqbD40bnZ 9mrA1eaIEhUBZvif8Yw3GlyddbjnSL6gLH8cZSYRXG6riJpT77I+padsZQK1U41Uv1V3 a6CWX6cbWyMC4/unKcdkQsB2I9zXvUALG+msMvTdGdn2ibw3dfkVjCb2s5DsX5CyNCHz uT0wuGJWNwIZiHfzLVNW1j1L8c0f3ty8rHGvloXPZK9QP/RO580+slwbskgJTx2grI5E KtBvUvDua7cs7TCodsZxAS/rx8Y+OpSj8rXrAj7fhS2+j1C+jJxuUsMFa1wreAA/Cucx uLEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S0ypjPLs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020aa7c981000000b0043a9ba73187si8577047edt.289.2022.08.15.13.13.33; Mon, 15 Aug 2022 13:13:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S0ypjPLs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244655AbiHOTjG (ORCPT + 99 others); Mon, 15 Aug 2022 15:39:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344208AbiHOTgX (ORCPT ); Mon, 15 Aug 2022 15:36:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CAB62FFD2; Mon, 15 Aug 2022 11:45:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C16A611C1; Mon, 15 Aug 2022 18:45:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FE70C433D6; Mon, 15 Aug 2022 18:45:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589138; bh=SJ0B+3F+fbAszECz8ZtkNnD+5SL0MMT+AsyQBtyN4Bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S0ypjPLsHsuQeGSpN0+n8IB2GNVGwFfduhwKeZQCy+Veb/3UzwoNKRPGkc+c5HmHK ujbd8VoO7odV8QA6ERyOWGQmzVvzfUH1FOhvJ1L+BeSJu4byDexV1GWSJE91hwctHs mSNMUS+fFqrXzqOt/pdr1+KamX8QIPnywcPMpwz8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shengjiu Wang , Mark Brown , Sasha Levin Subject: [PATCH 5.15 624/779] ASoC: fsl-asoc-card: force cast the asrc_format type Date: Mon, 15 Aug 2022 20:04:28 +0200 Message-Id: <20220815180404.057997012@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shengjiu Wang [ Upstream commit 6c7b077dad62178c33f9a3ae17f90d6b0bf6e2e5 ] Fix sparse warning: sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: warning: incorrect type in argument 3 (different base types) sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: expected unsigned int [usertype] *out_value sound/soc/fsl/fsl-asoc-card.c:833:45: sparse: got restricted snd_pcm_format_t * Fixes: 859e364302c5 ("ASoC: fsl-asoc-card: Support new property fsl, asrc-format") Signed-off-by: Shengjiu Wang Link: https://lore.kernel.org/r/1658399393-28777-4-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/fsl-asoc-card.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 95286c839b57..c72a156737e6 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -540,6 +540,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) struct device *codec_dev = NULL; const char *codec_dai_name; const char *codec_dev_name; + u32 asrc_fmt = 0; u32 width; int ret; @@ -817,8 +818,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) goto asrc_fail; } - ret = of_property_read_u32(asrc_np, "fsl,asrc-format", - &priv->asrc_format); + ret = of_property_read_u32(asrc_np, "fsl,asrc-format", &asrc_fmt); + priv->asrc_format = (__force snd_pcm_format_t)asrc_fmt; if (ret) { /* Fallback to old binding; translate to asrc_format */ ret = of_property_read_u32(asrc_np, "fsl,asrc-width", -- 2.35.1