Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2992307rwb; Mon, 15 Aug 2022 15:39:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR527XlJU/RaAyVqvRGkT6O9EB1MKbZaKDfd/UydYtbcOiC4VN67qxQP36oFwnlyb/TBbyVb X-Received: by 2002:a50:ff13:0:b0:43e:76d3:63e1 with SMTP id a19-20020a50ff13000000b0043e76d363e1mr15927811edu.271.1660603176487; Mon, 15 Aug 2022 15:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660603176; cv=none; d=google.com; s=arc-20160816; b=SHUfemC12D0HGR5n4SABPI4LQw5j0hV0DL8M7BK4lnPVy3XDFL3o4HH3/9Skx40wb5 P+7KYGrE+DQW8Et6DbZMaBOZb0939r5Tz6NRpegGC0U2Fjkn4pAb5b5KRVNpxModXoXf j4G9WVL7o2H/CgbKxmq0+bgCesEsqG7rxvhNaes16TxVBe8M6ShH3KmFhk6sBUZHwMzX Cdw/09jQzuBFz7q4zVjOpN2FTZHDI98NudtlqO/WShf72Ksb2CpVlnnNWbVlZNYafKde 7s8tZVZSK2cCJXT/LcnrGDHlJnyzz52lh8b6hGRxUd1TrjrxxrNJ3u0cAF3aJcrgwH/8 bNFw== 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=r7pP8SN4Xnc8yDw7fQtnSWs19xprAtn7rYiu9AIsEfPJW2rAKdl9JJgOAImGgiI1X2 I7mic6jX7xLMAAtqQQ4vRU0p64InXjGAVUVKmR0QENrkwQIzTeac4z6qU9YWUMKPgjig wA5JXiujAQdrkoM0AQiJ9BfvZUx7R9LG4Qmk7xpeqK1cBnWCkQ2bdXzo5p/Gfdu/Z5RN WOQ/e1FPTk82ecva+ZLu3L35EgquKtxVbhQpGnhbYJUyIzNZZcvNtpR8KEwQEagISQ/m cveL51Z7dkIlPXK1CrrEpcn0ZQiqg7zRgwEAglzSlz11g8fe9PjBNVNYqqSbr1PDYf11 4X5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Exun67G8; 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 m9-20020a170906720900b0072a7a1bd505si7605600ejk.207.2022.08.15.15.39.01; Mon, 15 Aug 2022 15:39:36 -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=Exun67G8; 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 S1350398AbiHOWgd (ORCPT + 99 others); Mon, 15 Aug 2022 18:36:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351237AbiHOW14 (ORCPT ); Mon, 15 Aug 2022 18:27:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 965066F56F; Mon, 15 Aug 2022 12:47:45 -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 B2E856122C; Mon, 15 Aug 2022 19:47:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0AA6C433C1; Mon, 15 Aug 2022 19:47:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592864; bh=yhuN0DL0yv2xRFCMow4wX3R8JWRCMkUfnbUAKDjrUfk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Exun67G81V2XPHJxiKtDxFxVMaCfuGybNbpfecSPZgzZOMVCV79ONBS6+AuX4I0ZA j0fQ6k64B/eRGQB8mcij+/ox5I16U+pf3qrbIeKrbkxvssl/CqeXSJPwikyRaBwHfg oGgVCc3m4FnJgdzVsrzGvbz5+IBAk8yQZORFIHXI= 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.18 0829/1095] ASoC: imx-audmux: Silence a clang warning Date: Mon, 15 Aug 2022 20:03:48 +0200 Message-Id: <20220815180503.608132466@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: 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