Message ID | 20230809-cbl-1903-v1-2-df9d66a3ba3e@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B74ACC001DE for <linux-arm-kernel@archiver.kernel.org>; Wed, 9 Aug 2023 21:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Cs685WiwD7+R0QGo86G2oJF/1BZLAh1XOq/QaK+Gh3k=; b=Z+TNVGe+PZrzEh3eg3SyVUmBQt mKK3my2rRqICijmaybCKOjxdr6C3uIdc2lQZbSP3QDYWIo7VXHhBEq5cfrDZXsslu7EmxEZscOoHd 5jusTk7/+D1lOm5aW2Bxv6gxs1Ehd/0b7q/RGhXxPmVuCQ3LmfHvIa3U5DxDx/fu21qDVmt7AA/0a ASXNvx8TNVAFTi/4AXrdWxBJLu61A/0b6KK4cWhPVzH0Ej9DiPbtJv1wkx5I0AAFbNXAGsRo8FggA ABspflhSDVW46KfjmGsqhmqubAj9Eo665PyfZ6FugGajJ47FV7dRwrue7JX2/M+A5CTcwO9jVkgc/ qI+s1uEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTqgj-005t58-34; Wed, 09 Aug 2023 21:25:53 +0000 Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTqgf-005t2x-0D for linux-arm-kernel@lists.infradead.org; Wed, 09 Aug 2023 21:25:50 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d4b1ec7e918so265087276.2 for <linux-arm-kernel@lists.infradead.org>; 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=Bp+BFb2//LKwjgHFEZUD+msF5oJVGurCe17Y9g4zucgCXm8zZ9Z3VRnbHFkDDYgZ45 FLKaIhaxSfIIPZeJ75WXoi6twheJ9HnJ7+A9gpw5h+y4bnGrhaXkC9Kf478HhvY1J0SX O5xow/RAkoSKOBERRUBRf5gLtHP/RNcT0ZOZgcUFnndddG3Qw+L+vNEcbKMz5a4df2GS rlAbQ1JgxgsyX+TpfGhVK0CR3L2ZVoBRrNn1U8Dpb8PK4QrSH1ug/79aVXOupQWq4Ebn rr3ovy9pFhAkxz2uc6Oew6ZzliGYmoUMyWK+tOiVxI8VPAVBokRv8r8pIOXaJeJxn46R wtcw== X-Gm-Message-State: AOJu0Ywd943kanId3lJqwls2UWnWVY4bZw7ECG8d6XqHxUiawe+Ar6ma hBqqdKnMiv0pstXCTg+Ml275s57uhRBYrTGItg== 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 <justinstitt@google.com> To: Andi Shyti <andi.shyti@kernel.org>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com> Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor <nathan@kernel.org>, Justin Stitt <justinstitt@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230809_142549_106000_AAF26EDD X-CRM114-Status: GOOD ( 12.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
i2c: fix -Wvoid-pointer-to-enum-cast warnings
|
expand
|
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 *pdev) if (IS_ERR(priv->io)) return PTR_ERR(priv->io); - priv->devtype = (enum rcar_i2c_type)of_device_get_match_data(dev); + priv->devtype = (unsigned long) of_device_get_match_data(dev); init_waitqueue_head(&priv->wait); adap = &priv->adap;
Fix the following warning: | drivers/i2c/busses/i2c-rcar.c:1066:18: error: cast to smaller integer type \ | 'enum rcar_i2c_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] | 1066 | priv->devtype = (enum rcar_i2c_type)of_device_get_match_data(dev); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link: https://github.com/ClangBuiltLinux/linux/issues/1904 Signed-off-by: Justin Stitt <justinstitt@google.com> --- drivers/i2c/busses/i2c-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)