From patchwork Thu Aug 10 09:59:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349173 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 467EAC001B0 for ; Thu, 10 Aug 2023 09:59:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D58510E4B0; Thu, 10 Aug 2023 09:59:50 +0000 (UTC) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1414E10E4F8 for ; Thu, 10 Aug 2023 09:59:49 +0000 (UTC) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-99c353a395cso107032566b.2 for ; Thu, 10 Aug 2023 02:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661587; x=1692266387; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3DbDWowkXJ8CHoc7ekr/xcmqd0aQK/hBwEyNws4eo4A=; b=FRtbVwoaVQmMXLXQX7NiR9VPkxE8/CTA05oDWglzBF4EESK+CRTCXeb2GSkn/eisUs BEdAsPmPDvXfJChjh8bmL5lcOK9nDnVFqkoG20ZRrBzcPCbd7Aeg2u8CQ0EMrOo4rSeX beiT9IgqlsIsd16gBM2ZG/g5k88bK6WqXfEWm70M/MVoVSK2PQ+chx/P98/gU7YGJGsb xcAl9HJ5JQksN36n6f1nPC0MbQABivhE6aX5EexDyHRWYkv3mQUQtizO8cZIwsV4CcsL D2UheqD2FNQWBNrPI7UOubxmDCmQFkyh6AaWPY6mw//UcV782mdG/7m4dvzO4/aqtBWR 43JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661587; x=1692266387; 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=3DbDWowkXJ8CHoc7ekr/xcmqd0aQK/hBwEyNws4eo4A=; b=MyU1S92TWbu80e1xNYjbnoxnNI+5fMla8briwJdRNQjn+0haDk0PM1MnkuHx0Y2FjS sQdJ1H+jx+zdGIMfQBjlovKOXyHKZdRWLty7yapne8AtoR22LLS5ikq7ciiju2cRjPP4 v1WKGmhD/6GBOPdRvJZb4LDZESrcN7cv0IWH0DnoUDnn+yZcda91kjNlTZlHZzuX1Cm0 plKZCrnnu/zMoVbeCABpcpQgQnf+FLaGGHQRLjAq9NIA8FELmz6XrNzM1z2oTJmhKYZQ 33QaYLeYCbNt2NcBkpVLgFpcCQXgSZB5ei2GJFmiVIqYDoZQK6rI9BAgDh8t02Jw9L4f IASQ== X-Gm-Message-State: AOJu0YyZfY4WIp0tsh9nT5dTHkbEyDf536IOc7h+k/I2w1MZdFMLx6AZ JoIaOGyI7kpYpG28nDj+bir882A3gQcqJN/CzaXmuQ== X-Google-Smtp-Source: AGHT+IFadznnKin1G3h7chRKcx6AsNDRLqsGXsvhVAb+I5BficeEjg/qSB9kBj0IybuULnXYxHHDmw== X-Received: by 2002:a7b:cc85:0:b0:3fe:173e:4a53 with SMTP id p5-20020a7bcc85000000b003fe173e4a53mr1551533wma.0.1691661566553; Thu, 10 Aug 2023 02:59:26 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id v1-20020adff681000000b00313e2abfb8dsm1610969wrp.92.2023.08.10.02.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:26 -0700 (PDT) From: Krzysztof Kozlowski To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Qiang Yu , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lima@lists.freedesktop.org Subject: [PATCH 1/2] drm/bridge: adv7511: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:59:22 +0200 Message-Id: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski , Andi Shyti Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: adv7511_drv.c:1214:19: error: cast to smaller integer type 'enum adv7511_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Laurent Pinchart Acked-by: Robert Foss --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index 2611afd2c1c1..0e284f379602 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c @@ -1211,7 +1211,7 @@ static int adv7511_probe(struct i2c_client *i2c) adv7511->status = connector_status_disconnected; if (dev->of_node) - adv7511->type = (enum adv7511_type)of_device_get_match_data(dev); + adv7511->type = (uintptr_t)of_device_get_match_data(dev); else adv7511->type = id->driver_data; From patchwork Thu Aug 10 09:59:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349172 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 F09AEC001DE for ; Thu, 10 Aug 2023 09:59:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F0E1B10E0F7; Thu, 10 Aug 2023 09:59:30 +0000 (UTC) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7240710E4B0 for ; Thu, 10 Aug 2023 09:59:29 +0000 (UTC) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3fbea14700bso6276375e9.3 for ; Thu, 10 Aug 2023 02:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661568; x=1692266368; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pFjv0YOMmIbvyG8xqF6MV8pbiE5lmY0sXRy/BYvrEBo=; b=Ixv+70gHE3pXTx6L1vFwOTkx9NxE+MKxfvU8Gye31lmOvdXqpN5Awm3Ohj4Ide3L5P kVHLouP2pqOpQTLtumMbA1pccky5zo1J8O9YkNpQl4PK1ba9YtHItke0tuwuxX+O7T6w 5PYhicbGlowNDu/SF5iBjzJ1FKidEZMEQiXHB8k2avq3zqTohFlL7lfE7rxEdLiHHUvg WwkkU17wMdiGUIGBH2i0x/decbBaTqkwBUzk0x6nhoXxHeAYFp5Wr1DqXzL5ZEPXLXiU 79PaWkoNQVGHJ9QSQEu8tzNAIiMQG7PETG9Zg4zjMxViDZxXr3zrQASAnuhU/MBVsCrd Xc3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661568; x=1692266368; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pFjv0YOMmIbvyG8xqF6MV8pbiE5lmY0sXRy/BYvrEBo=; b=b4odxU5WwdeZwHSooP0hH7ZR1tqI9zoaaX8S4A72ZBmVBlI9rg/2KMJmcvCPuV6XxA eeucGqE/ivzD8ZPD1++4mBrQGrwJU/FgVA/Jxb/hKoJF94dnhyxrQM2k1xNpGx5tJIJL jm/BxPr+ntI6rI0PUWSCClIp//x/03jl6NBEk/gVFHeGQwuXMMfVofoy2eEH90y5lKVI blOHdV+ofdZUTYT/7v16w0kSoBm4PhkNqWZqQqnRBbcPWmn1xTYDZ87RmA6GBdAOFrl/ 89smPZC8FlNpg7NcYe9HilRDf9H0jZplJoRCFQjSJ6kru2330BB3vts58ide+djwzBzO M/Ug== X-Gm-Message-State: AOJu0Yx/EhU609WYUYuLLarhM27x7y1e1rPsVhDPkbLc3EwZC2H7inI4 X0qfCCgLtUojtnQyUbYgqlFrow== X-Google-Smtp-Source: AGHT+IGCwl1K+ldtgkSe4CgL2aTR/qcXURd710H4UgjL8wBL0DGcfhLJc5LyBskohd3Gj4g1bUGl5g== X-Received: by 2002:a05:600c:253:b0:3fe:6f7:60aa with SMTP id 19-20020a05600c025300b003fe06f760aamr1408658wmj.12.1691661568032; Thu, 10 Aug 2023 02:59:28 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id v1-20020adff681000000b00313e2abfb8dsm1610969wrp.92.2023.08.10.02.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:27 -0700 (PDT) From: Krzysztof Kozlowski To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Qiang Yu , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lima@lists.freedesktop.org Subject: [PATCH 2/2] drm/lima: fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:59:23 +0200 Message-Id: <20230810095923.123388-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> References: <20230810095923.123388-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski , Andi Shyti Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'id' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: lima_drv.c:387:13: error: cast to smaller integer type 'enum lima_gpu_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Qiang Yu --- drivers/gpu/drm/lima/lima_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/lima/lima_drv.c b/drivers/gpu/drm/lima/lima_drv.c index 10fd9154cc46..884181708de8 100644 --- a/drivers/gpu/drm/lima/lima_drv.c +++ b/drivers/gpu/drm/lima/lima_drv.c @@ -384,7 +384,7 @@ static int lima_pdev_probe(struct platform_device *pdev) } ldev->dev = &pdev->dev; - ldev->id = (enum lima_gpu_id)of_device_get_match_data(&pdev->dev); + ldev->id = (uintptr_t)of_device_get_match_data(&pdev->dev); platform_set_drvdata(pdev, ldev);