Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3026145rwb; Mon, 15 Aug 2022 16:24:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5INMgPZveaDvCCeevVLz9CCRUUINvzNGKr5xV9vW/GZ1YPK/mqYuHlVPpmc0Jqyt4XNhXF X-Received: by 2002:a63:580c:0:b0:427:e7f2:a21 with SMTP id m12-20020a63580c000000b00427e7f20a21mr8580159pgb.87.1660605853126; Mon, 15 Aug 2022 16:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605853; cv=none; d=google.com; s=arc-20160816; b=sPx68wN1AHA+k3VRbK9ySC13bfE8KTmg+zGVXQAan32+Db1OsLJ3BbVlCzPsL/1/QZ rX2au058xF96rMQCyfxWaoomH9nKgwiJdHCiJ+2JKRUeME+WhHbYtotq/GU3SuDRSr7Y EqH1d6CIL4tE++/0SuZAVb0TwDFDqvEyEQTUz68l23hNH/fDxMRkWEWRO17rpkknAiF1 ZnRflnFaTf/oZJrguRwsk4yMl6EuIq9dd6rOQo6+f1MbWc4fnZToxvuMKLrP6v5J9usv rvmydNEjKCdTwJBma12BecqOZ6LnCmZLPgfhRsb0FLMnaK0xbJrMVyT9P0t7X115wi84 bmQg== 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=6lCLiP+0/rF5jIAh1ih493BHGZcar4TCchR91pobN8s=; b=MScz0R3Flmzf0zIqaLWpvXeCd+6qcVbkby4IgxWoNbms5tBC20+J9DQP1nYwokTz8A ug5ybZkIb5Amomx1lBQYvx4DdDEJeQgrDCawm9uuyL5MCACFYb2aCKPD7Sb562rl63tv 9yDDueNP2i/T+pYHTpRJI/rYP2ZdIG/aqczDqg1LvVOSoh4gtPyEncwTbvqOzppGGc4x tSQMiDMhVi5SgSPqWDFBrNuO8nVO8DwNMggzTAEFY/plTX1czm6k1aHx0tR22AlftYX0 jEzZ9RCrjiIweRn7RgHb160IH150l6a6cM/XT7V+Wo6XVuwPh9QvYGfkQIZlkOnvLY0d 1a9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="MmTmI6/P"; 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 v20-20020a170902f0d400b0016f002733e3si10460801pla.497.2022.08.15.16.24.02; Mon, 15 Aug 2022 16:24:13 -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="MmTmI6/P"; 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 S1351618AbiHOWp4 (ORCPT + 99 others); Mon, 15 Aug 2022 18:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350432AbiHOWmi (ORCPT ); Mon, 15 Aug 2022 18:42:38 -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 4638974349; Mon, 15 Aug 2022 12:52:19 -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 10CE860FB5; Mon, 15 Aug 2022 19:52:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1618C433D7; Mon, 15 Aug 2022 19:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593138; bh=AyU24YVz++nhNR4ubWOG1XjYUMz+8Y1xf/PQPu5HIz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MmTmI6/PLEmzRJusv4EGrQKrOLFVXkPyhVYQ8LfioEOxmUY7u8Rb8WJjyVdX3YZtj D5Vm11Q7U9MTjFFck0NRjaSoqZA/BgJKFLqU4zRwbLbEK3rZuE3OEGFgoK1H9TWYjS ehUFgRyNkxiWKgRebJvRPNNO84DKcV4eHP5x/odc= 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.18 0901/1095] ASoC: fsl-asoc-card: force cast the asrc_format type Date: Mon, 15 Aug 2022 20:05:00 +0200 Message-Id: <20220815180506.571419022@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 d9a0d4768c4d..c836848ef0a6 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -537,6 +537,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; @@ -829,8 +830,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