From nobody Mon Sep 29 20:17:14 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A3BBC00140 for ; Tue, 16 Aug 2022 00:25:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351253AbiHPAZK (ORCPT ); Mon, 15 Aug 2022 20:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351608AbiHPAXT (ORCPT ); Mon, 15 Aug 2022 20:23:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4711017DAA6; Mon, 15 Aug 2022 13:34:11 -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 1C901B811A1; Mon, 15 Aug 2022 20:33:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45300C433C1; Mon, 15 Aug 2022 20:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595637; bh=BQ2NZTjKz78WNjI81W8uU/hTpB7t1KCa7r0WvxzzocQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c1RcZPXQBfs7ffYfa0duqwJ6nZDH1sbtvde9ydEJSbGSKpF6/eWu79gTFTL4EuKcq 4HN4/bkSMdiBLZpLxqYsMbz6vCBsiVHy1SK429ELGOJUajCME8BgRi2ugT4VW3hc2Z sXKtfyihqDP5Kv1v3GjEG1g6iNKnOu2scNLNBAL4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Fabio Estevam , Ulf Hansson , Sasha Levin Subject: [PATCH 5.19 0795/1157] mmc: mxcmmc: Silence a clang warning Date: Mon, 15 Aug 2022 20:02:31 +0200 Message-Id: <20220815180511.285389117@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-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Fabio Estevam [ Upstream commit 7dc65e3c0ef4b746a583b7c58f99873fddf5ccfa ] Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning: drivers/mmc/host/mxcmmc.c:1028:18: warning: cast to smaller integer type 'e= num mxcmci_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot Fixes: 8223e885e74b ("mmc: mxc: Convert the driver to DT-only") Signed-off-by: Fabio Estevam Link: https://lore.kernel.org/r/20220526010022.1163483-1-festevam@gmail.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/mxcmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index de04b5afef2e..613f13306433 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -1025,7 +1025,7 @@ static int mxcmci_probe(struct platform_device *pdev) mmc->max_req_size =3D mmc->max_blk_size * mmc->max_blk_count; mmc->max_seg_size =3D mmc->max_req_size; =20 - host->devtype =3D (enum mxcmci_type)of_device_get_match_data(&pdev->dev); + host->devtype =3D (uintptr_t)of_device_get_match_data(&pdev->dev); =20 /* adjust max_segs after devtype detection */ if (!is_mpc512x_mmc(host)) --=20 2.35.1