From nobody Fri Oct 24 20:23:15 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 608C6C00140 for ; Mon, 15 Aug 2022 22:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347583AbiHOWDp (ORCPT ); Mon, 15 Aug 2022 18:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348552AbiHOWBR (ORCPT ); Mon, 15 Aug 2022 18:01:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C751A8277A; Mon, 15 Aug 2022 12:35:47 -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 991E56114B; Mon, 15 Aug 2022 19:35:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98152C433D6; Mon, 15 Aug 2022 19:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592147; bh=DjhUQ8cm8P60U+l9dj6IIm427jOlJO/2HHQIDVr5GKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ytorR74/mMZZcy6mdoqNP6htQPS3BSPflVs8SJcJ3EolcS3k2ZYD21uQBQUeuO0SS AleKEGpldgBINKyII+/1itiygYoThp/4J2uDjRvsETx3QhOO9YF4agZ0zv+iqFAKB4 807gNvCgbM2jhqgYVRmdWHNDLsp1v93SgQCY8hs0= 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.18 0741/1095] mmc: mxcmmc: Silence a clang warning Date: Mon, 15 Aug 2022 20:02:20 +0200 Message-Id: <20220815180500.028237189@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-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 40b6878bea6c..b5940083a108 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