Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3118950rwb; Mon, 15 Aug 2022 18:34:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XI+uKGA0s0EUrEor0VUvwdsOxa1pH22KF/XoJhDwHeY7YPfR5Ba0kto2u5n9xmvmjYAeD X-Received: by 2002:a17:907:9808:b0:731:5835:4ac7 with SMTP id ji8-20020a170907980800b0073158354ac7mr11876278ejc.125.1660613699185; Mon, 15 Aug 2022 18:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613699; cv=none; d=google.com; s=arc-20160816; b=Okrf+0c+jseYGPdLr1eYKp4+r64DVrB3CsawkFd2RXlRRnrU/BvMYybueWpjTm6ffE VhxO003MAk2aj4xkE9xFY+s9ooqU9K2pB3jlhhmk6cuw+tmGjKYTF7ajdO/3BhP2g59N NfTOBjNi7/0OMNAlUa2I6K8H1b51VooZk/BoUBebqWoyOzewKURVYACVr2TeC6S6u9Dy 9wbwY58rzapa9D20qUQQDF4/z/FH+NEa3RlBC1xS/PGlUwXKe5SN0uqX2QTUECdpxrJz sqc/zR7gagQ3u+/M/7sGJLzX8wwUcy0p8k+Bz7U6grIdRV52oBXMO7mSs8wi6knis7kC ACow== 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=HCIDyd8P5oejTbSpxAx94gHiYAX+nCt7nrkVkHb3F/I=; b=vVQFU2quf4FxmpHowueGYmUkkqIrdNgD30VRBYutlIsoJ4pXGfKLYa0Sq+aUzw1qSO A8/iddDVOEfx2HBUEfeSilLtHpFR34V1lnCKwvz5s/kW12ZoKw+P0I0uOkI1yUbeSVAx 6xQFtSNk5FYjhXEyZutAAkQ7fhQs/q76/YmPTIzxIkEYAgDSu8yxT4IsmGC6bIpZ/LfK RVPiZ+EezBsmPn4YGy8/TTl/0TzA0/R4czzN/Qlw6peeyZewbd4FycYopSRAHem+Y4cV gFMQkWSeF3K7IkwLi5+bcu7a85+JpjUPhmQ5u/Gglhk5FxTeUF8w8Orek/7ahAjqR5do qbQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c1RcZPXQ; 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 v3-20020a50d583000000b0043cc482f78fsi8152900edi.416.2022.08.15.18.34.33; Mon, 15 Aug 2022 18:34:59 -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=c1RcZPXQ; 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 S1353152AbiHPAZJ (ORCPT + 99 others); Mon, 15 Aug 2022 20:25:09 -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-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 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 = 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