From nobody Fri Sep 12 07:44:33 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E4B6C001B0 for ; Wed, 9 Aug 2023 21:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231200AbjHIVZx (ORCPT ); Wed, 9 Aug 2023 17:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbjHIVZs (ORCPT ); Wed, 9 Aug 2023 17:25:48 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EDEE1BCF for ; Wed, 9 Aug 2023 14:25:47 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d4b1ec7e918so265086276.2 for ; Wed, 09 Aug 2023 14:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691616346; x=1692221146; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=TeHUuHfRgnWDPuFH4hkEU5fzn9hCBRBVrCadOWnm/dY=; b=m3F8/0ulUMYTwL9xFOJ0hLRUE0yTJsXtRqAWzCWvR8A+u4BtSF1Y9J//7l8oh0HeNF d5qEkunwkS56Mz1cw7IUxuZVEOW2FD/UTOgzMNQJmPWQHyJ05/0wM/x6SuBrfs27Jrnt qUklp3oTnJ7R4SapRrWPkfff8qOSLDGr1ld2cj9x3iq+oq3psVc6yx8Uk7alFVQLOTC7 FXHyjmZP0uT9Fi12AOmKZle93xdSLL1acnmz/8ctRZCUx4WiU1KuNlsM4s+l6BcfmLmd +0n++QJDHSgrwWPxPCHclEP51dI4/IAC4TY6UkzLXJbTD3a9ekMpmCia1UX6FTucRJgY pE0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691616346; x=1692221146; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TeHUuHfRgnWDPuFH4hkEU5fzn9hCBRBVrCadOWnm/dY=; b=SxLWdiNZt2VcjuRQGPc/9PyYXL+QsVt1SXToG+iPToUINqBFz81yuojtVnkJ4dbYOd rgACdRctkIqEDQMij3mploqQhREb6bq+61JtvgF5xXdWxGvhjI1hgIs+mg+BekMaM1Jy 4kdWUrdZicdim/zMlV8chpHHR486U51dckYhcm5hVnBwFbMvvM/TKnfT3llYz7ZIhqLj Fpid57L8QyOcAd2ONGQw3xuZatCZVJ5VF2u9smoS6LCYdMS7vB8ZU/P76VxLeT2sQ2wy VEac33dhET4AG9zqvgANmRbAQn3TKjigpYaP6lPOZgz3mg31/dNKg0czDOy9whAKK7xI ZVaw== X-Gm-Message-State: AOJu0YwGCyEwAdtTRoBAEoEZgCNKb+jGqKyIC2iCDYvoer8PPS8Wfqy9 xnv0PG7/9nOwzxhhALoxUbVJJb81k18B8kukbg== X-Google-Smtp-Source: AGHT+IER7CD8SLhYDzqAvYfXBz6YfQlFaQpKeWFvIJE3aWUQIYc8I61MFtiEi6h9Vzp0vHtlu9BcD3BOdPTotW/zYw== X-Received: from jstitt-linux1.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:23b5]) (user=justinstitt job=sendgmr) by 2002:a25:1409:0:b0:c6a:caf1:e601 with SMTP id 9-20020a251409000000b00c6acaf1e601mr9823ybu.13.1691616346561; Wed, 09 Aug 2023 14:25:46 -0700 (PDT) Date: Wed, 09 Aug 2023 21:25:36 +0000 In-Reply-To: <20230809-cbl-1903-v1-0-df9d66a3ba3e@google.com> Mime-Version: 1.0 References: <20230809-cbl-1903-v1-0-df9d66a3ba3e@google.com> X-Developer-Key: i=justinstitt@google.com; a=ed25519; pk=tC3hNkJQTpNX/gLKxTNQKDmiQl6QjBNCGKJINqAdJsE= X-Developer-Signature: v=1; a=ed25519-sha256; t=1691616343; l=1145; i=justinstitt@google.com; s=20230717; h=from:subject:message-id; bh=8JnGtAd2EouEzprwFG0EpWdSWssM4tBnJ8iYInUW3tw=; b=y/bJoUJDpUrl23oM/z5FEe37aFVYK4HTaD9RQ9C+npAsantOFJJouIu1r+p30Gfq3nlCbIx8G DhPci9Ygy+cDBvibVqeQG0Mi40YPg54DPSndE/L8i0YHBy2nhk5+ZJD X-Mailer: b4 0.12.3 Message-ID: <20230809-cbl-1903-v1-2-df9d66a3ba3e@google.com> Subject: [PATCH 2/2] i2c: i2c-rcar: fix -Wvoid-pointer-to-enum-cast warning From: Justin Stitt To: Andi Shyti , Ray Jui , Scott Branden , Broadcom internal kernel review list Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , Justin Stitt Content-Type: text/plain; charset="utf-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Fix the following warning: | drivers/i2c/busses/i2c-rcar.c:1066:18: error: cast to smaller integer ty= pe \ | 'enum rcar_i2c_type' from 'const void *' [-Werror,-Wvoid-pointer-to= -enum-cast] | 1066 | priv->devtype =3D (enum rcar_i2c_type)of_device_get_matc= h_data(dev); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~ Link: https://github.com/ClangBuiltLinux/linux/issues/1904 Signed-off-by: Justin Stitt --- drivers/i2c/busses/i2c-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 2d9c37410ebd..ae4072bc96dc 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -1063,7 +1063,7 @@ static int rcar_i2c_probe(struct platform_device *pde= v) if (IS_ERR(priv->io)) return PTR_ERR(priv->io); =20 - priv->devtype =3D (enum rcar_i2c_type)of_device_get_match_data(dev); + priv->devtype =3D (unsigned long) of_device_get_match_data(dev); init_waitqueue_head(&priv->wait); =20 adap =3D &priv->adap; --=20 2.41.0.640.ga95def55d0-goog