Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091966rwb; Mon, 15 Aug 2022 17:56:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR5EqmTqiCKs3RZ51U7dGjs6U83/jg2cyXlR1Sk9eUO9vdGY0WoyVwoD9VCcdnS6m0RC0FAF X-Received: by 2002:a05:6402:2788:b0:440:8394:9a3d with SMTP id b8-20020a056402278800b0044083949a3dmr16983601ede.220.1660611361724; Mon, 15 Aug 2022 17:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611361; cv=none; d=google.com; s=arc-20160816; b=GNjkFADelf1WyqCGY3d4hwSCikHFHcq6WS3eKral/6lGHMDqV/3+Bynmoio0zN89YT ja3SEfLrxuohsk/wIm8xYpTHFnw/0H5yJS0OovZUuGtoQf6KPvn90pTAmDdRy+DI6cwu CY9khJX5HYMdU7vQGNqb2Z8qG928ZDkMh6msfCW6SbIQsQSPSwUzb5tEoqkYcojuwD11 W4lkeoZqTQlYmEcus5pTMURThuHYqtEEp8XEi5PBGLIzhALVonYEUYbVBUUgR5B/B0DK rLYGEoUmvSCbrzb2NC+qyMl3std4hhmLaVyFBMTDN+KRGTlwSVnlJmCwjMoFiDvOoadj pK+w== 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=96g1Us++HXoaf+nWWwlCTCPPRxgq06upzTGjyaOiWqo=; b=QrX0EXcm+Kby0xki0cA3IMVYiEoGzd59oUJQOhKZHsDMVt35eYnTuV2b/MxhmOzyIT t4uQ0mfW7yFs9+Pa+iBn53oyT4Z3wNtAkFBoYcCtSLj8XcKqX7KcshkA+vAUzLQfv+Vo dcLdDfJoeOpbDOSRNkT6nJ71CsD7rKGhTmYkEv5Md1blNl2Ci0KSBhX9VCX8r8KDLd2U C3VOVWVYjRSpsCQXCCAjojT9/fLoz/qI4iB4DCJ69DoNXwm+8hSiI679UZtvt8BLWsmn qZz/5Gg+QBTcg4BjdkM8dsAlrV661qIZkuAYpOIQklBLdcWmpQNjXytr26b28G4IR+gS 9NKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TzlRNDlX; 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 hc34-20020a17090716a200b0073832e13344si7234097ejc.86.2022.08.15.17.55.35; Mon, 15 Aug 2022 17:56:01 -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=TzlRNDlX; 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 S1346767AbiHPAiA (ORCPT + 99 others); Mon, 15 Aug 2022 20:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350742AbiHPAgK (ORCPT ); Mon, 15 Aug 2022 20:36:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C201894E1; Mon, 15 Aug 2022 13:37:37 -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 ams.source.kernel.org (Postfix) with ESMTPS id 72E5CB80EA8; Mon, 15 Aug 2022 20:37:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3930C433D6; Mon, 15 Aug 2022 20:37:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595846; bh=yhuN0DL0yv2xRFCMow4wX3R8JWRCMkUfnbUAKDjrUfk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TzlRNDlXIcex49HLKDKb8U1I6l8zPmejfBBls5zRIzDFt9u/xXIiim4SJS+OSUlBU LB+ka3lIStZQDjFbPz7iGhvYtM6fCM59xVjsXoPPqm84SzEvjW51DQYZu3wUmqsPvP /Yrxb9Jevu01uPn5bory1N8Ln5674HfGZGj9MRfY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Fabio Estevam , Mark Brown , Sasha Levin Subject: [PATCH 5.19 0892/1157] ASoC: imx-audmux: Silence a clang warning Date: Mon, 15 Aug 2022 20:04:08 +0200 Message-Id: <20220815180515.123236133@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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: Fabio Estevam [ Upstream commit 2f4a8171da06609bb6a063630ed546ee3d93dad7 ] Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning: sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot Fixes: 6a8b8b582db1 ("ASoC: imx-audmux: Remove unused .id_table") Signed-off-by: Fabio Estevam Link: https://lore.kernel.org/r/20220526010543.1164793-1-festevam@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/imx-audmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index dfa05d40b276..a8e5e0f57faf 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c @@ -298,7 +298,7 @@ static int imx_audmux_probe(struct platform_device *pdev) audmux_clk = NULL; } - audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev); + audmux_type = (uintptr_t)of_device_get_match_data(&pdev->dev); switch (audmux_type) { case IMX31_AUDMUX: -- 2.35.1