Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2928867rwb; Mon, 15 Aug 2022 14:14:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cCSL3sz1lYZxnzvQ+KawealLjVotT7Qg3MLa+8eaK7ceYUXjRKjWR+/7BO9HjIKgYxW57 X-Received: by 2002:a17:907:2896:b0:730:983c:4621 with SMTP id em22-20020a170907289600b00730983c4621mr11529118ejc.502.1660598070795; Mon, 15 Aug 2022 14:14:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598070; cv=none; d=google.com; s=arc-20160816; b=gGEBm+eCaB6ZJtIxxfMLeEaPxQJjtXbubj31hahRzMwAIJzL8bNcNiskZ7ucdDbNqQ z9OcIKLm/kSOP5B2lNsgO1Qk/O/5i1VRqxaNkXG8UjA+A0/OwLlB0yDftOGj3Z9dEmOG e3o/a26GTnBMuqxxJr6ZB4/fw3SkueQxZaQgRxsuqn2NaEEP/pIUGLWKNBDCqc+CF2u1 B1P4d2udLBemJtSqxRsGvSosMJ3Y2CscDz6usiMlyfgCev8eXOHhx2F+cbo/7SesZ++m hz6ouAlLdRM2DhgUo/+CuyRIF1swjtI5XSo9rgx4bq3Heu0ny3Nl1iLHvaufRw/eCH9D pSug== 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=rM6bY1ko6wl75GUNLtcVAwak3xuZisLbZKcA94fo5hk=; b=vkBXOC4lr3nJrLvuf4DoIWsLzgpxKBWY+LTeYbyAQv6LheONsGIiTk56np6h356b7U LGy4hQvUEJxmaXxO7KIQ9PX65MedZ1XF1CBoqLwbrVS206NNq3/4WwEwgZm+tcAQuhVN bEAPKMUFbyIrP7J4g5zxzn1UDz7ruqiL6lsiywAboWBsUxY82K9H5wUSgiEZYB6JrEWW 4P34h+577PppyezZhdXQrnnJ24EcRztOSa9kWZgmF5c1sNkrWcpjEzF+PsmH6/cbkk3U cZX6DcCa8uENGKTLAiCjjRrAivjq2VsOdubjt0Neh08S6pNefKdsnKqdxz7jVeKOTM0n 74rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wmuvr6vY; 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 i18-20020a1709064fd200b007383d0c047csi4154418ejw.509.2022.08.15.14.14.05; Mon, 15 Aug 2022 14:14:30 -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=wmuvr6vY; 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 S230365AbiHOU5A (ORCPT + 99 others); Mon, 15 Aug 2022 16:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346763AbiHOUzo (ORCPT ); Mon, 15 Aug 2022 16:55:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C4623B96B; Mon, 15 Aug 2022 12:11:19 -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 5EFC66069E; Mon, 15 Aug 2022 19:11:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 607BBC433D6; Mon, 15 Aug 2022 19:11:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590678; bh=7R7XRJk9VX5l9JuQ7DA+8HY+77GdZP4j+qwtfoEEtrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wmuvr6vYJa5iJo5+wL8n30+aJjMHr+gDSCyPsb/ujDhOH+mJRPf5E7AoPKGk3OWpr cBx/Q6z0c177qh8TVxNtLVK8AcZcRlzSHHb8qY5qDD1bfY8PMQhFLiZUQXa1UIgIMg M9E/n1yAS8SbWSYDx79isaaL1Zum5nrcjA6vhlLg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Fabio Estevam , Wolfram Sang , Sasha Levin Subject: [PATCH 5.18 0329/1095] i2c: mxs: Silence a clang warning Date: Mon, 15 Aug 2022 19:55:28 +0200 Message-Id: <20220815180443.399753755@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 3d43273d7d1e1a5374d531e901d3c537b4c97bbf ] Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning: drivers/i2c/busses/i2c-mxs.c:802:18: warning: cast to smaller integer type 'enum mxs_i2c_devtype' from 'const void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot Fixes: c32abd8b5691 ("i2c: mxs: Remove unneeded platform_device_id") Signed-off-by: Fabio Estevam Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 864a3f1bd4e1..68f67d084c63 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -799,7 +799,7 @@ static int mxs_i2c_probe(struct platform_device *pdev) if (!i2c) return -ENOMEM; - i2c->dev_type = (enum mxs_i2c_devtype)of_device_get_match_data(&pdev->dev); + i2c->dev_type = (uintptr_t)of_device_get_match_data(&pdev->dev); i2c->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(i2c->regs)) -- 2.35.1