Message ID | 20230810091247.70149-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp317069vqi; Thu, 10 Aug 2023 03:23:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHI+QotmiJNM5AaCq94i1xgA9ZRWV1pidjwP11qTHWE7KP3rfszoxWZMihl95pm3QLanucR X-Received: by 2002:aa7:c752:0:b0:522:c0ea:15f with SMTP id c18-20020aa7c752000000b00522c0ea015fmr1616210eds.41.1691663037791; Thu, 10 Aug 2023 03:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691663037; cv=none; d=google.com; s=arc-20160816; b=cv0/7MQmlt497lIIIDPlfzHXjjsDdSlifN8Sv4ADuNSOcAT4VrCCLwa5yLYSrHBSVa HbwrFs+XzEiHJR31RMwpfTP8c/5QrRrLoqRtKCE1LVQ7YXkj1G/PKvgRYX9AhGgu7FPJ rsoOKBBGn7qELnsn8/KZ8gGt1r82Ul0GB697O9g+eBi/mxj1A6plK702CfYZRQjJd+FV oZxmJbLCrx6GASv/PL/W7veK/nqogqut4/0XJsQzmOfA4UQRukiXt/xkOh+JyQWyAPfC XcokcEm18tVV7cpyc9gLaSzknsDLElRJV3i7eP86ko4C8Tp0VIZiJyYRCap/PSeG4Exp fBEA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=2tF/UykYBSS5il9uXSjCsz0BSK47V9bZY9dMBZBHwCM=; fh=4fI96NLnHacfVs2+OJlD4Nczp5Xs1D3mkDY8NYa+Xws=; b=nTllj+RYrdglEshxSDu6n1utwGKcrW/cH/Wj5XO4TVCoMkqPQ1aC3VPW+YRnB/PmTH mUZcS+4Mm3ze0FB7B7auOVInIlI2L53QNpK4xmgEhfGtOcrRfqYDx+0FePGLyBNa9wyg fH5EWq8JGJe7IA8PBDa2dwOQdit05l9wZ65oH1RkLcuIjFO+f4ID27sl+MCJ27tJFApD BXJVmSoSIqwNTRnUgKXrTOO1On4bzZBF8jzLl6NZAkeEwVSx0eHFt4+Rk+zA+zs7hggo T3uRPY/j4jxOcwFZizRUSZkrUaXtxwwtwD7Y4cdiXi22n/7pKOJEL1gDiU/cZJrXcmN3 osfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Omi3/tkS"; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a50fb01000000b0052337b7c6ddsi1135812edq.256.2023.08.10.03.23.33; Thu, 10 Aug 2023 03:23:57 -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=@linaro.org header.s=google header.b="Omi3/tkS"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234617AbjHJJNc (ORCPT <rfc822;m15293943392@gmail.com> + 99 others); Thu, 10 Aug 2023 05:13:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234695AbjHJJNE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Aug 2023 05:13:04 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8562D78 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 02:12:52 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-523b066d7ceso229476a12.2 for <linux-kernel@vger.kernel.org>; Thu, 10 Aug 2023 02:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691658771; x=1692263571; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2tF/UykYBSS5il9uXSjCsz0BSK47V9bZY9dMBZBHwCM=; b=Omi3/tkSRgFfWFz5TU3/glLgHe/N/sxie8IkJQRtOfCCzWVEjQR+W6CBt1eRbgOZfA nSTEcYf2a9/VRoSVBSrbaxhJQ4ooFAe5nazCqlyCWFz3DXqss/iCO6G1+2n6eLu/4cNa MxOV7IQVAnkhWVvyXn5SkY+Wi6C3g3yDPlgLFcDnYofNApG+QBC/GAETWxRGYCF0oIVh V9mCG/81U2ziw+8NPtRfpaAgnkXVnQTM72dZFeLXZpUKysceyG5yiDRJ4g0IQXFX91RH 2/xNq+za9s+oXmSt99zEQthls14X5s5w0SpPRBhv4QVnTepwrfmm59qbjovM+S2gq33G bTJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691658771; x=1692263571; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2tF/UykYBSS5il9uXSjCsz0BSK47V9bZY9dMBZBHwCM=; b=ST0iKJ7ShHXhSBeWcM/FBMb24X5djkcxS7aumrltFXy2AyX9ZcLuSTqVzqTA5ntVof aCrpd+HB4dlChBVlQ1gsKP+bs6/apHzFCZ4PleVuyG1p/isKgza1FCCDT9eknb7PUwRQ 0atYKKsCa7kBUreOG0tT2st6Sir6mGuRQtC0h24vAs4s1S6Jq5QiXuUPGXH6lXtP3D+I tiicwXD2YrqVAPrNXs8OXQmO12O4eUWR/Lyd++l4xgEiUoQK7f5J5FZ+RpE/k0LvV29l 3HyytYMozSrvEgYNhyj5AvfJrcwjRKndZURPrGJKmwgc+c/7sXzebeF/Mfi0UrXJ9Uv5 AKvQ== X-Gm-Message-State: AOJu0YwBi0sxxlgSv75BnOHtX5BXjOIjPHkj24gFoiruRFST9eVGy5FW 6C+OWI2/y8adgkASAz+qXihdLQ== X-Received: by 2002:a05:6402:6c9:b0:51e:3558:5eb6 with SMTP id n9-20020a05640206c900b0051e35585eb6mr1660739edy.3.1691658771138; Thu, 10 Aug 2023 02:12:51 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id m8-20020a056402050800b0051ff2b6139esm538889edv.5.2023.08.10.02.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:12:50 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Sanjay R Mehta <sanju.mehta@amd.com>, Mark Brown <broonie@kernel.org>, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti <andi.shyti@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH net-next 1/3] spi: sc18is602: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:12:45 +0200 Message-Id: <20230810091247.70149-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773837261678566742 X-GMAIL-MSGID: 1773837261678566742 |
Series |
[net-next,1/3] spi: sc18is602: fix Wvoid-pointer-to-enum-cast warning
|
|
Commit Message
Krzysztof Kozlowski
Aug. 10, 2023, 9:12 a.m. UTC
'id' is an enum, thus cast of pointer on 64-bit compile test with W=1
causes:
spi-sc18is602.c:269:12: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/spi/spi-sc18is602.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 10/08/2023 11:12, Krzysztof Kozlowski wrote: > 'id' is an enum, thus cast of pointer on 64-bit compile test with W=1 > causes: > > spi-sc18is602.c:269:12: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> The "net-next" patch subject prefix is not correct. My mistake. Best regards, Krzysztof
On Thu, 10 Aug 2023 11:12:45 +0200, Krzysztof Kozlowski wrote: > 'id' is an enum, thus cast of pointer on 64-bit compile test with W=1 > causes: > > spi-sc18is602.c:269:12: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/3] spi: sc18is602: fix Wvoid-pointer-to-enum-cast warning commit: 0f9440a646fd1245a9206f171a4de25e6b092d42 [2/3] spi: pxa2xx: fix Wvoid-pointer-to-enum-cast warning commit: 94d6cf7e72a3ef90d7e16d770c3dc1b9cd40d8dd [3/3] spi: amd: fix Wvoid-pointer-to-enum-cast warning commit: 675b8e35b5cbf4aaa1339079f44b88b9f1bb2f1b All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c index c67a24daaaf9..9f98bf350697 100644 --- a/drivers/spi/spi-sc18is602.c +++ b/drivers/spi/spi-sc18is602.c @@ -266,7 +266,7 @@ static int sc18is602_probe(struct i2c_client *client) hw->ctrl = 0xff; if (client->dev.of_node) - hw->id = (enum chips)of_device_get_match_data(&client->dev); + hw->id = (uintptr_t)of_device_get_match_data(&client->dev); else hw->id = id->driver_data;