Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2921306rwb; Mon, 15 Aug 2022 14:05:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR4gz1/fBoa8s7Rc/JYXetk8nbcRSL0SYaXeh5EaIJVc0QV4YRnrv13mmPYJfmwavLjT+tUW X-Received: by 2002:aa7:d657:0:b0:43e:7fe2:95d4 with SMTP id v23-20020aa7d657000000b0043e7fe295d4mr16043203edr.60.1660597540399; Mon, 15 Aug 2022 14:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597540; cv=none; d=google.com; s=arc-20160816; b=A3H8iMQ3JuiPysxhafbbKVEG3UEKwzHSclLtryRPdvpIGdQl0GrJvzY74b9QzWXn9L c618ShHSQUwAwvp4+62q2OViDnL1YlYUO7AAxmpVC+kjI86Mab/xxIDEwpurFjd58cmO aJR+fVsF7/q/60PqL5NZ5yPjyJ/xAlgULU62pNmIt3n4xUJRckF3eozPX+0NFUH+D9TC jtzmTZ6Av4kUjEM3XdEETo9hSAYzP8MTci0LSXrZtdiUGVsuV7doQ5ljy5Tn9qhTfsu3 uMuAM70ZFK0OQUGJEKK3Ihu9zGxwWjvkZEhE6IqGCk5klSrd25yt0CfLhg+NBv7BCR1I vogg== 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=WKFbouk/qeUxKMaY3XZDHWngaqBTE68POggEXbTo+GMgjHXPFV8V2jbSoCg/lIy38j Sz1thJaldTSywPwVJfCWZm12DJjdOXrT6jqikS2Sbfw9KMx43vxJYYZPomGhlOynL9jr GqDcFsplHQRRLwr1TgrXTZ/zkOuv1q++i/QLDzhhn5OZOM6Wur+Z3GNQ8yy57X/mv7JE Ztw6FWCsCEmjKITymWsmA2hpfd020/0IzHUb2bl6pRSb9LpOf6jbghqYbY1TtkMiWsCN d0wNpnfeip8VIMIjtfFom8MB/U5D35ENSV8he4tjigOFP5JXFFub82ZaZ4EOq+imj0/z OH4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nPhPLQtx; 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 eb9-20020a0564020d0900b0043e18c8248asi9518951edb.600.2022.08.15.14.05.15; Mon, 15 Aug 2022 14:05:40 -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=nPhPLQtx; 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 S243849AbiHOSr3 (ORCPT + 99 others); Mon, 15 Aug 2022 14:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244162AbiHOSmR (ORCPT ); Mon, 15 Aug 2022 14:42:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11C252F653; Mon, 15 Aug 2022 11:26: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 BC8D4B8106C; Mon, 15 Aug 2022 18:26:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27558C433C1; Mon, 15 Aug 2022 18:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587968; bh=7R7XRJk9VX5l9JuQ7DA+8HY+77GdZP4j+qwtfoEEtrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nPhPLQtxkdLLxtGFUaWPbk++zcoWDO5MnOKWUOvDokW4FmFuH+cf9a+Em1x4qbIv5 rFkttIWQ69UgF65s4aDY0OhxSaxX3Xv0JDrat6oqv6ydWa7uti4ntROrUG/GWVMhpX wyQI2/r6IcOm11clyveVUyVH2TTJdeXHOKn9D20o= 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.15 252/779] i2c: mxs: Silence a clang warning Date: Mon, 15 Aug 2022 19:58:16 +0200 Message-Id: <20220815180348.099412806@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 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