Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2876612rwb; Mon, 15 Aug 2022 13:07:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR5T+TIel7MZAXrjG9GPQqxZqodTBK1N9rVXdZ6vqmVUy7hc4lxtOo5mmrdQnSKMM9IkVA40 X-Received: by 2002:a17:90b:164d:b0:1f6:a38b:91e9 with SMTP id il13-20020a17090b164d00b001f6a38b91e9mr20114058pjb.211.1660594043400; Mon, 15 Aug 2022 13:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594043; cv=none; d=google.com; s=arc-20160816; b=1KXEMHItlCk9c4Zi4W01wDCdFMJpMtwUQuY3cukNDj3NbWxBEk9uxrKVAZSp1VxvHd t4QnJ8mPmNiEhTPVzzz3INHpDEkxg53k0QOkG5com9yks4dbs9LVlad4+Pbblk5QFRTw 6hankQtVogOzH7mLAeAu/dGQ0+d36JDJgypiYg+goFZQ7tMCljwX0BS0UDtQPsBoxzbD MNcqCFCMzUd1GfnPbcZ/ilggQ98qLIgRG8CmLGbiKlN7fJMiRF+oJRRJmY3TvXp5FFuG 8CoSm6paFR0WFZ5v5qBloTRcgPQRLg5FePM0FplHQ+sEemGaMy4jwICxOGGEaPitc4Mj 1PVg== 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=U7PgnU60ezanUeSX1fuB7SYWymIjZEmFakMjkExHcMI=; b=Z5VepZWpTNOyH6+00SfACi0hNX0qRhwE7DI94bmvReX2or3BbZtkMKId52todnN+O3 uAX33fIhAU9TbHQspqhJE1CZOpwYzHPBu5a1xFAJanU/P7niORlO9Ac+ZhSMTbQ8IPVQ sewnWYeb19EkTmQtG7o8ogH8rT54YMIYz7vbURDycZawLrSJpdBRd8SFJqIIAcrbq1WF 9t59yg+4iGp4ydRYL45SHw0Ayr038auUiBjmkApzOWZlVVXky1FYrOJ1TUWGsunUkhSg dvQmwzyvgiq0m1ZdUGlM07OJaOgHJsUvtuRcNlhP/Ym1zZRH5l1FoGM8sj1a0FPoyvEF BcUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2cJd6GOq; 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 u3-20020a655c03000000b004150f91b921si7013672pgr.210.2022.08.15.13.07.12; Mon, 15 Aug 2022 13:07:23 -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=2cJd6GOq; 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 S1343756AbiHOTS2 (ORCPT + 99 others); Mon, 15 Aug 2022 15:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344099AbiHOTPi (ORCPT ); Mon, 15 Aug 2022 15:15:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 109AA52DD8; Mon, 15 Aug 2022 11:37:52 -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 A94DAB81081; Mon, 15 Aug 2022 18:37:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02D32C4314B; Mon, 15 Aug 2022 18:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588669; bh=dtE/VDMmk74avq+YClQMceAC7eWhmIxaLz/G5hJIfkY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2cJd6GOqD8xM3dQTlsXtXscR42vK8txQtnjZtv9sZEAXET3g9sTIVk3qd1v8ZIqtG au0zRcyvRQQbcCr8OSmHvGcecp+QlTS7VUzhNDOB26kdzEwP8inx3wn6mQ9lVlWGKp 4jBHjypS2EJ+Gr7FzmmcT3K4OGWnHKvs0/CA+BIw= 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.15 477/779] mmc: mxcmmc: Silence a clang warning Date: Mon, 15 Aug 2022 20:02:01 +0200 Message-Id: <20220815180357.661053375@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 2fe6fcdbb1b3..9bf95ba217fa 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