Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3017702rwb; Mon, 15 Aug 2022 16:14:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6y3hiY09oN2XrxBjW3tB0Q8MHD7uIO57WaXtOTDVwg6AejsdPt+M0Lr/XvqGl6vckWhdT8 X-Received: by 2002:a17:907:6e9f:b0:730:e923:a378 with SMTP id sh31-20020a1709076e9f00b00730e923a378mr11896596ejc.71.1660605262561; Mon, 15 Aug 2022 16:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605262; cv=none; d=google.com; s=arc-20160816; b=l6ikPDHJsyPPFHHV36MVEt5swLz695mGD4xpZzcLHz8oKDa8FCHPqpDfzwaS2AzWPF 5YZ+1bJs+J/e8NdtS4N5psf8XP9M/YdZa/9aCtjwfzu1pC1LsUKhNqmSlLeAZuwSPJHX 4yCxSkUEnZ2IqKu7M0DM2VQ6VG9s8RiviH9ymjzUVUVWcPJjd4QXgniQU5hfW34fO/nD 1LXb1TMa12eMxlkX1UaDJ4Bs25dOSPyA49UXa0brL6ZPfGXY45HkxcV+zYPPOKeqfInq aCHi7ZpaH6feQYci9BO07rw54LZr8TVVShc1KZCf+GSmMs784yrNERJsh/QFwDyB6yDn NmTQ== 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=qDIdAzccoJTh2djfODguM2/1KrHBsTEqTThVqYujaj8=; b=D2/+zDcaSdEjZqXH8vJF9Be8Zspo2j1Avu6zUYBLVGxxynorJ3QfH4GEIV0sgDVguf 1bbrePqZUjxCUuEKWbxtyfiUz9G4Oar5GhbDHv7orGuA7UK1bqlKy0nVFq0KHawqcjpP bmG094OKuG5ylY2VkOIv65rK0OWxlKgUNZhug5m5/DS4YyeudqVvvzcQ8de12KN94uNM bBcCw6KPf5dA0+Ni79XwpztrFjG5sX/3TZwwH+pEWj5TFTwLau8EBwbn+cLGVQOw8wQo G0fF2mW8WMh4eD3/GnNuO+Ri9P65H7MpYaqu3hd9GBcrqcAM/sdSYwOIQ0Fdj+iEs0fF kpIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ytorR74/"; 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 qa43-20020a17090786ab00b0072b7fa15683si9485665ejc.312.2022.08.15.16.13.57; Mon, 15 Aug 2022 16:14:22 -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="ytorR74/"; 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 S1343963AbiHOWDo (ORCPT + 99 others); Mon, 15 Aug 2022 18:03:44 -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-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 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 'enum 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 = mmc->max_blk_size * mmc->max_blk_count; mmc->max_seg_size = mmc->max_req_size; - host->devtype = (enum mxcmci_type)of_device_get_match_data(&pdev->dev); + host->devtype = (uintptr_t)of_device_get_match_data(&pdev->dev); /* adjust max_segs after devtype detection */ if (!is_mpc512x_mmc(host)) -- 2.35.1