From patchwork Thu Aug 10 09:31:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349124 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 D2FC4C001DB for ; Thu, 10 Aug 2023 09:32:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234818AbjHJJcG (ORCPT ); Thu, 10 Aug 2023 05:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234685AbjHJJcD (ORCPT ); Thu, 10 Aug 2023 05:32:03 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9F7D1 for ; Thu, 10 Aug 2023 02:32:03 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-51e429e1eabso860619a12.2 for ; Thu, 10 Aug 2023 02:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659922; x=1692264722; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G5U9OyHZkyp7R4jd9YJoYn9GiUGEosxVPGm88bMk714=; b=bQOP8BXZG+PsoDvWGzlAR+7vcIHL3exlHy/6+jJ30kM54Q+zPdID7gdUx250QyqPeK q4sqlsR57/tpGFynpq191xhLWBZRpBA3j9mWyZUfyv5B7Fkmc/tz5d2SZsuIb5u6bm9u HS9oafI2uZh2lOqXQGd/SUynude/mUHXQypQKmDHY5mNL0q3LDvJr4bAxGMBQFa0jcUr QEA8mlYFH4Dcr5G1aOvmCmBf1s+PVfMmWhyOV7vXPmJ3L/uG7VjQgRRuUnkZpvUW+kTT 8m8cr0SZ4MTQw8NqdBthJqCfuIq3Gp6V22yb0si0lBVwWSK80swEBUS4eG+h44+kprkM FUfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659922; x=1692264722; 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=G5U9OyHZkyp7R4jd9YJoYn9GiUGEosxVPGm88bMk714=; b=kxaX6FI6FJ6iHBlpHRiAIr9d/lupN2yeqM2dbimWFDD3W5yEYD6GgCaEDYZl9JUQM9 mUs9NyAlRLhelc64l4NANuQUm3a4zN1javUhGYU2c5hnARvhesENlnzVkKEIB1QWy6vf TmkNWAd6lB9DkKBNriQrQP7hfDs4e//RL6TGw6mWOPRQHfTyggIEHVSDs8FynnrTKxTW 7bz9Fe4xTb8FBHEOSejQU26lADPcRU6jEjI5L/BaZTOPD2USDEedZe/kfwOUmfbIX1qS ykEZtHtTHOOfp3XBxiPfY7E7kDCbmmHHk1q3vLU45xVV5aFouacrncyUhAXvIL+5VsJ/ lRug== X-Gm-Message-State: AOJu0Yyz4aWw6YeihbF6bbJmeHnz4XwhMFXHguDW8F6uZAdBhSXMG9dL M1eHLI535ZlapLGGI8a/QcIsAgjfILd7bw4fc5XeSw== X-Google-Smtp-Source: AGHT+IH5Bqb3CQOStHITFc5O637GOa9y/gEBFquykoaU1GHTJzvzdpEXHn6jEdIpCthu9D3UsaaZNA== X-Received: by 2002:a17:906:31d2:b0:992:9a5e:3172 with SMTP id f18-20020a17090631d200b009929a5e3172mr1473028ejf.59.1691659921724; Thu, 10 Aug 2023 02:32:01 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:01 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 01/15] hwmon: (adt7475) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:43 +0200 Message-Id: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: adt7475.c:1655:10: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/adt7475.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c index 5363254644da..03acadc3a6cb 100644 --- a/drivers/hwmon/adt7475.c +++ b/drivers/hwmon/adt7475.c @@ -1652,7 +1652,7 @@ static int adt7475_probe(struct i2c_client *client) i2c_set_clientdata(client, data); if (client->dev.of_node) - chip = (enum chips)of_device_get_match_data(&client->dev); + chip = (uintptr_t)of_device_get_match_data(&client->dev); else chip = id->driver_data; From patchwork Thu Aug 10 09:31:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349125 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 1404BC04A94 for ; Thu, 10 Aug 2023 09:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234902AbjHJJcH (ORCPT ); Thu, 10 Aug 2023 05:32:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234888AbjHJJcG (ORCPT ); Thu, 10 Aug 2023 05:32:06 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B60B51704 for ; Thu, 10 Aug 2023 02:32:04 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99bdf08860dso387510866b.0 for ; Thu, 10 Aug 2023 02:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659923; x=1692264723; 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=VkJrp3SblDfFtU8UBVulMVwaS++B4Gjz65+AhL9Je5g=; b=p5Co+QHcKXiDm16tv14B+MoVn/yRUUsXSvj3aaV5MWoDdZkAeZ7lDRgQFUqTPo0ZHp osWCAWtP37rTALTSqyLgoBS2i+xhwifE4yAduqGXfN6fwJmINcCeVZu0oya1vUwzgsH+ yEBJIhV2FTneqtFf5ins4phhXALmafN3gN8jpVjrRV10D+K22ctPOVjwKdDugCCl4aaQ 5jQVvS4aL6nAlqjC37R+BLsR5VcBjjee2BVq1ufcoBZ3rROeOyNPyCbUNKyRjRbwCYvB +pRECRzwP9DfSMbb8CpLqpYckjyyOPzCoOVA4KvLoFfWZIbdL+QJFp1Ski/oIQ/nn7DQ vlcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659923; x=1692264723; 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=VkJrp3SblDfFtU8UBVulMVwaS++B4Gjz65+AhL9Je5g=; b=MpFKdYzAMJ6Df3U3IJjUWkebjHROm9nqA1tJfQlLWY9seaAFlUQDLYbQb9isAgfI8a 4USAw/6DHvMHt9WIvflhQUgRFFw+9LRUqxhDz2St+GD+Rl6OHHbXrbK+mLQQLBD+tZEH NienONiXQZJf7vIxp8Rl6tg+DPmdO8AbK6R7d8cZ2l+KqV9K3FUHhuMJW6C1+UpuOtWV ARAShPKHrOmauaSBMoimA1vQ8IfSam9ot1qRGR1KLkM3cFqVhQ8oRj6jM0dV3JzDTVyB HZzTYH0v5ULWQDc6eWG5BtKiCu5R7g+vRCE9Av8NzjZqJAEu8jbZ931XhdQPmAySTjdl dLPw== X-Gm-Message-State: AOJu0Ywi/bygJCKGPKQgI6tcTccgnCsMK88BtJX/NVj1AkVhq1xEo1YM SG+TLdFyeiKnb+Z08WlNvA/0ZA== X-Google-Smtp-Source: AGHT+IHcbnF8r8JpNPNsUEVv2dwzGbMLuNzvjnp9AGlmJq39aZJBhXg5iIpgJf7cYShzcKhcWsMT0w== X-Received: by 2002:a17:907:75f0:b0:99c:602b:6a6d with SMTP id jz16-20020a17090775f000b0099c602b6a6dmr1849004ejc.11.1691659923274; Thu, 10 Aug 2023 02:32:03 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:02 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 02/15] hwmon: (ad7418) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:44 +0200 Message-Id: <20230810093157.94244-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ad7418.c:256:16: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/ad7418.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ad7418.c b/drivers/hwmon/ad7418.c index bcea66eac82b..4829f83ff52e 100644 --- a/drivers/hwmon/ad7418.c +++ b/drivers/hwmon/ad7418.c @@ -253,7 +253,7 @@ static int ad7418_probe(struct i2c_client *client) mutex_init(&data->lock); data->client = client; if (dev->of_node) - data->type = (enum chips)of_device_get_match_data(dev); + data->type = (uintptr_t)of_device_get_match_data(dev); else data->type = i2c_match_id(ad7418_id, client)->driver_data; From patchwork Thu Aug 10 09:31:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349126 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 B461DC04E69 for ; Thu, 10 Aug 2023 09:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234886AbjHJJcH (ORCPT ); Thu, 10 Aug 2023 05:32:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234891AbjHJJcG (ORCPT ); Thu, 10 Aug 2023 05:32:06 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E442E2123 for ; Thu, 10 Aug 2023 02:32:05 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-51e28cac164so3763839a12.1 for ; Thu, 10 Aug 2023 02:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659924; x=1692264724; 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=Hx1EWsadjrbhivxUbU4pbbJ5OAeuz16OhPt1XfCI85U=; b=zeRwl+OJFXE6wnEfKEsHYxFsO8UGhC+4XW8LW4eq/yyAeHw1Iuc98jVrGHcrmP4S5i 9ciWZWBl8kgGzdbucogdv9hbYa3qi8+3p9WcgmBu7zSn9SP32DWsS2m5TmO/0bCUl4Ze IdQB4akDzKYazUzjfAAO0jOuMYrtWlx+hJTcAOOXiy1uA6sx/r+u9WbTAPmWsY0Dlop3 weyQf7IpkGMs2vx85xsU5ivMHEBropH7TDsLsFhHS8fGnkHtBT/We0U2gZMFvA/gux+x jTxgBvnngxzaUr9DiihuF6l8ZFcm+JAhVgPZglvI1Cdy3CT7z36XPmJlehHdm/RZQk2B HDQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659924; x=1692264724; 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=Hx1EWsadjrbhivxUbU4pbbJ5OAeuz16OhPt1XfCI85U=; b=hOX4yll8nLOHa0lAf4FFfFAH+kgQD6j3KDX2m21/IYDJJUITjWdByWlUSq1fiMXuTe CULLYVp9reGJiVsaizxb6cy2A6IUa8nDQ//6sf/cYam+qrWOHTwqpL6GwFHZkx2NPZOb h7Cy1l4mjPSTyLYzq75ypoDzegkvIR8VBIjbb+DcdmuemcXdVVUaIXwwiRIqdBDGJu5h 34Ni3b+mmPcbs4g7tGlILUR1+R60wS3eC5Unq21GSbp8nFfFBpGYeGEaW/tRvl3rQcpT qwegKMVCOIfm+rK7lB8SQXJiVZgfk6cKafz/jfJL1m8O1FchsJ+pNzappJaa7mBQWiXs wVSw== X-Gm-Message-State: AOJu0YxFFNHcJDfhilB22TxR3eDYIFzHQFS375xpBvOtkxswawy+2DrR WwlOtInHh8ns9zSIEot3D90u+w== X-Google-Smtp-Source: AGHT+IFbUyMP8o7JoUvDmuJ/hCd8KB+GUsO3M9ncRAcyh+Vpoxpz2CZUzT5NAFYQlFuMg+AyXMg6Pw== X-Received: by 2002:a17:907:6e2a:b0:995:3c9e:a629 with SMTP id sd42-20020a1709076e2a00b009953c9ea629mr1769873ejc.31.1691659924482; Thu, 10 Aug 2023 02:32:04 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:04 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 03/15] hwmon: (ads7828) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:45 +0200 Message-Id: <20230810093157.94244-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ads7828.c:142:10: error: cast to smaller integer type 'enum ads7828_chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/ads7828.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c index e86894e35639..809e830f52a6 100644 --- a/drivers/hwmon/ads7828.c +++ b/drivers/hwmon/ads7828.c @@ -139,8 +139,7 @@ static int ads7828_probe(struct i2c_client *client) } if (client->dev.of_node) - chip = (enum ads7828_chips) - of_device_get_match_data(&client->dev); + chip = (uintptr_t)of_device_get_match_data(&client->dev); else chip = i2c_match_id(ads7828_device_ids, client)->driver_data; From patchwork Thu Aug 10 09:31:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349127 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 55E5AC04A94 for ; Thu, 10 Aug 2023 09:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234888AbjHJJcO (ORCPT ); Thu, 10 Aug 2023 05:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbjHJJcI (ORCPT ); Thu, 10 Aug 2023 05:32:08 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428202123 for ; Thu, 10 Aug 2023 02:32:07 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99bdf08860dso387516866b.0 for ; Thu, 10 Aug 2023 02:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659926; x=1692264726; 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=1Q43IRXyNbrBIwroOAlFtG5izxl0H/94YCjrUhPAxdw=; b=ywaS8tWeRtAjsVEaSdvCAxAIP6EmjKFfZMbZXfScIzvFOi0f2cgMIlyPNBRa5gms4e 4MpRrBPEcOS4LTVal9/lLNpo7FKDMaM1Xov5ioFCCbwKED2Z1n1+38fa2C8spTDwDEF3 9xeVNtxfridVUcFzFM69wBk5kh0v+qyCgRK94S/tWhsvqCspmb0J/xHtX2qsL8222F25 2SLCwrJRs4gqYXH0LUktYImwEfXtifb2Cx1arZiZkIxkBFefMyiLWahMIInbrOWFrz0c uMfk0r1sHtDQe8Jl5NtZ73kRSZdKjwGmZyj8R1pFJOdG7yCRAPN3EaG6mqlNU/LBGuKP GmnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659926; x=1692264726; 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=1Q43IRXyNbrBIwroOAlFtG5izxl0H/94YCjrUhPAxdw=; b=EBSvva/7kt13x7KPayn2ckRPPUnoiUSljj+eVfTTwCyjHNXaGfuFPlvS1DfKHBLKWy lfv8e5ZueGmCHfaSA4TnfVrrJRV7p11v+JvhA7KHCOgunkfF2p02XVDTKMl/zHaHcd48 Iqva2GKQKlatWoBOjbTF4zv01GPt25kGpNRHefhRuug/NzJ+WQwLRmjQoJCHJr6H1Wu6 AQMIEjkyDzH4B2yAbtxRzN07MRJ6s3OKFCms2TqLbCJU7iB9cXhkVYMU6waJrf1p/Dk/ Qe2l/YimKx9X2Vy8kJ14qH3R8NFHis9ZABcIH9s+deCb2Zk20rNHAHlsG1gjmuLQ0qU5 V+Kw== X-Gm-Message-State: AOJu0Yx2aGc8wkdG3UxLzKtFDAoAQR9Ol8noX3zXuludx8BLw8TBG0kr ghe7X0oIBEnfwdN+Fo8fdGN/7g== X-Google-Smtp-Source: AGHT+IG4f8sdYrymJmlh3DGEKzR89+ejP8EA/xmsdDxbX4Ig/rrClWihBKkwsv2QB5CbAjyw3AmDkg== X-Received: by 2002:a17:907:2bf9:b0:98e:370c:be69 with SMTP id gv57-20020a1709072bf900b0098e370cbe69mr1877295ejc.6.1691659925827; Thu, 10 Aug 2023 02:32:05 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:05 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 04/15] hwmon: (ina2xx) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:46 +0200 Message-Id: <20230810093157.94244-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ina2xx.c:627:10: error: cast to smaller integer type 'enum ina2xx_ids' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/ina2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c index a47973e2d606..d8415d1f21fc 100644 --- a/drivers/hwmon/ina2xx.c +++ b/drivers/hwmon/ina2xx.c @@ -624,7 +624,7 @@ static int ina2xx_probe(struct i2c_client *client) enum ina2xx_ids chip; if (client->dev.of_node) - chip = (enum ina2xx_ids)of_device_get_match_data(&client->dev); + chip = (uintptr_t)of_device_get_match_data(&client->dev); else chip = i2c_match_id(ina2xx_id, client)->driver_data; From patchwork Thu Aug 10 09:31:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349128 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 0B53EC04A94 for ; Thu, 10 Aug 2023 09:32:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234963AbjHJJcQ (ORCPT ); Thu, 10 Aug 2023 05:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234924AbjHJJcN (ORCPT ); Thu, 10 Aug 2023 05:32:13 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB1A610C4 for ; Thu, 10 Aug 2023 02:32:08 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-99c93638322so143627366b.1 for ; Thu, 10 Aug 2023 02:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659927; x=1692264727; 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=F09i0l4UP7Na+o2GZohTzvzQnZZ+3AbJJIDPlfRmGcQ=; b=mjlORp3OXj9jM0kA2FBRiItuE1/D5V5qjXlouH0IvN9DXGZ4JKLVPdreyMcxyiopMp GUHg7goI7Knq9sKzVj2doslyJZvKQgAkLvcjZkv1bThPmvV/hT3jlh5GxxpLF/K15Z+K Rs4G2mQ1b3AIScmblA1OfrAJbJmNZTJ+zUvbqAcrmiUY3dONspdxRzB3edccAQJLraHG Peyccqh5Chievi/wZ1y8LDhNbZj2jw2E6g0AyOjQDz66GfKhfzwNAjk+EjOANgBp/2Kh 9q3Fu/S5PcqXra30SFTAGb25E0Z6inUTUspsdSvDlsIMt3lZ120iWURKvgcyUQ1fawr5 UbLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659927; x=1692264727; 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=F09i0l4UP7Na+o2GZohTzvzQnZZ+3AbJJIDPlfRmGcQ=; b=lnzrpCSDiqF1lwk06TBx4F1tXk4Z2qEu1hx/erLeGdWr+x6FRI0I29+z0cW4sDvYUQ iGDXJ/aVhujmoyytPq4Y0WorvcdlBbccGk9/lpMAqqmX2hPhiRn+1LyLalXzcNkoDNSp GYda78ryGgm0hZKtdKwm9RrjfmL74vpeHIdvxrowAN/GPHrRrREBc6ZigeX78O7BA40g D9Xy9S002CbcDUNka9N9rDPD++dC+CbN0EvQiPiFc1d0ndRj+X5QLhG6eGB8dqi6BVx1 pWodjMJ5im790P8VsE6akUSGXnD6AqKHvq/n5qTMb3Nx6ZE+T5jiDOUosAfVO5G8r/vl L/tQ== X-Gm-Message-State: AOJu0Yyzh+6y169Kfct6Sbj80WZir5bmVm0Ct4/G4wdCFB8zz7p38QKN Qq5TRtiKW/GZwCUKMNCYq+iFIg== X-Google-Smtp-Source: AGHT+IFGFwiQLw2MG/nnXOafiu7HJHisVwW+BYILR1XuAKW9+6kNSj2ag4qYnHdaQHjPqRps5ims/A== X-Received: by 2002:a17:907:75f0:b0:99c:602b:6a6d with SMTP id jz16-20020a17090775f000b0099c602b6a6dmr1849253ejc.11.1691659927402; Thu, 10 Aug 2023 02:32:07 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:06 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 05/15] hwmon: (lm63) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:47 +0200 Message-Id: <20230810093157.94244-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'kind' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: lm63.c:1108:16: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/lm63.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c index 562c94c7d831..0878a044dd8e 100644 --- a/drivers/hwmon/lm63.c +++ b/drivers/hwmon/lm63.c @@ -1105,7 +1105,7 @@ static int lm63_probe(struct i2c_client *client) /* Set the device type */ if (client->dev.of_node) - data->kind = (enum chips)of_device_get_match_data(&client->dev); + data->kind = (uintptr_t)of_device_get_match_data(&client->dev); else data->kind = i2c_match_id(lm63_id, client)->driver_data; if (data->kind == lm64) From patchwork Thu Aug 10 09:31:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349129 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 91BF9C001DB for ; Thu, 10 Aug 2023 09:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234923AbjHJJcS (ORCPT ); Thu, 10 Aug 2023 05:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234954AbjHJJcQ (ORCPT ); Thu, 10 Aug 2023 05:32:16 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A522694 for ; Thu, 10 Aug 2023 02:32:10 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99bf3f59905so102645866b.3 for ; Thu, 10 Aug 2023 02:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659929; x=1692264729; 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=ujYRW768sxUw3nWx+F0Fmk4BkGloyO7j/jd8yaU4H6k=; b=oyz/NES/PoxGiBLxT272BOh4/YUvg9BPzVZAggDDIHaexYiMutdzlpQZPd9tYlM7Di QPBnVXRmfVV1RXHNigwDBH9aqUiO3oU+SAKmNk/X+AKnM58T0gX6M7rk1bfmk3v0B74O 1/mXOHn81Ws3VvGOHZ8NEmDjUNu5st4RSXv2826OxUSFO9ufryodkJoJtER9ehiiXdrL OQEu/y9KXVLQOb3qrnQrvc8rkIe8Qktr34sK9L6v7oFNGDAELP9u04GDaVaYzMK/WwvQ I6BF+25eTSHdUc0rLc0IgD6RNAPz0T/RFvW4n6JLX+MWEnk6BPlFup8MF8GKscCz8wm2 3u5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659929; x=1692264729; 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=ujYRW768sxUw3nWx+F0Fmk4BkGloyO7j/jd8yaU4H6k=; b=kVYHIsKjo6bQkv/Q9N5nMjLpAKccE+hBmKthd0bqNsshHs8NVdVwzMRS7nviny/ifl q170LZQREVWbeBtYMGyQVEdO5eTlsYmoJRR/Xkz1E3m4KzpZerfoL1YEAHw+iebtxgE2 BrtPezmoedPK0VES/QxY7GPwS6dKjtsguw+pR+kt8US96GYPjmZCJ6/R7AJxm5oAdImA E9EIc5aT7kUR/j8IbW6GjPYuIM7Pfb2EKPUkQQ+9S2IGopJVVyuDGDUIFNpq00EfrscQ JX3GAKPcuiQ3BHFwsdpd7TqvPfbGZ4qWFgNNCjXNUSFl8XsBk32/U8M0AGCA0yUD23yb 5DmQ== X-Gm-Message-State: AOJu0Yz2zlIYuZvQofyqDXQTPIoi9MTMWTbkR0IIIhbt74h6jY6nrykn C+cwncDWu9amq2lRcLj8jyS0MA== X-Google-Smtp-Source: AGHT+IEuckkYeG1+UR9IVmnMB8agEZb1tjh+K12U8mE5NT6o0jcXGi4ze1mthFaaclMtIhXJdETAcw== X-Received: by 2002:a17:907:7616:b0:994:555a:e49f with SMTP id jx22-20020a170907761600b00994555ae49fmr1560261ejc.31.1691659928913; Thu, 10 Aug 2023 02:32:08 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:08 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 06/15] hwmon: (lm75) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:48 +0200 Message-Id: <20230810093157.94244-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'kind' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: lm75.c:581:10: error: cast to smaller integer type 'enum lm75_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/lm75.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index bcfa8193e5e7..5b2ea05c951e 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -578,7 +578,7 @@ static int lm75_probe(struct i2c_client *client) enum lm75_type kind; if (client->dev.of_node) - kind = (enum lm75_type)of_device_get_match_data(&client->dev); + kind = (uintptr_t)of_device_get_match_data(&client->dev); else kind = i2c_match_id(lm75_ids, client)->driver_data; From patchwork Thu Aug 10 09:31:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349130 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 E518AC001DB for ; Thu, 10 Aug 2023 09:32:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235030AbjHJJc2 (ORCPT ); Thu, 10 Aug 2023 05:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234924AbjHJJcR (ORCPT ); Thu, 10 Aug 2023 05:32:17 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B5426B9 for ; Thu, 10 Aug 2023 02:32:12 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99bccc9ec02so106068866b.2 for ; Thu, 10 Aug 2023 02:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659930; x=1692264730; 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=YHWdkbM+7ZfvxLvuZfyywN5injb4OO3pSMCFeNjZHaA=; b=YUvcmNo4jkdgvxoQpFTM+gxtuS72TueXZ0eCikzmByc+0NS7Mx7wLyX/E10H/Rc9PI 1WmkWKv4Luv48o3x3m5mA6Jl8OeB31ZzNTLQ7g9XbpPDpfNb11FtawljY1nHd0FRJ7ym moekucrw7Nq806QSzXbHPlTcrhJrv+FCO/oP/RRu1BQaH78Jl8pIZeP3tnYM/mAg5uRN UsApW7tSmAYFhv0ACogECb1XS45TFbWWg2cz8XaqNlSQGEYEAP0MalwqzUb5HfKr02yf FO9xdJ+K/h/9Ueh2N74OvggOiyFAC8Lo89jbK/n2LK6moAtK9ozJ/3f175vcLh8pr+FV X3iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659930; x=1692264730; 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=YHWdkbM+7ZfvxLvuZfyywN5injb4OO3pSMCFeNjZHaA=; b=IceRdDfrUSPmbSDxcl0sFeRfAqoX3uWEvQTDf4KVw+m6AcLgY4P9NW4Jy/wJ3277HE MBzlNfcE7U6m3D/gwXJiJpfoHHrpZtIQ4R5xFNehJF94m+9HGah/hddFOUB8scxshRNt hQho5MkGphL4pH0OqUnOejgqQ6JpiQXI25C5eGgZUx1Isc+cMcF6Vu3JTaa8xtsQSj5i S+y441mgFJicOtrG6AxjOw0G3XulfY1IkwTlThIlVHfAnrwv8yjdVtwL40fQG3NBnQqD Zz0VzV00GMhxQbUfUUBXXgcQvhXmNi3TlSeRrIL0Xq653TZCaLCNvY+7AeaYxLTPdSJO I5YQ== X-Gm-Message-State: AOJu0YxrusZDLQbsxMYHk6bI6IC0i1/g1QIxQLzmPm8ZleHeJzIgm610 RI2oBnlfEgv20KHeMLnVsYfSSw== X-Google-Smtp-Source: AGHT+IHuGUw8VTnexYXJT6jqzQbYroYWwFnDwwktZr3BzdgYhY2MKLkxj1JWQtIwgoSB8+sSJ6spyA== X-Received: by 2002:a17:906:3085:b0:99b:f534:9bb6 with SMTP id 5-20020a170906308500b0099bf5349bb6mr1849287ejv.9.1691659930635; Thu, 10 Aug 2023 02:32:10 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:10 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 07/15] hwmon: (lm85) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:49 +0200 Message-Id: <20230810093157.94244-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: lm85.c:1562:16: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/lm85.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c index 2a62ea7b25a9..68c210002357 100644 --- a/drivers/hwmon/lm85.c +++ b/drivers/hwmon/lm85.c @@ -1559,7 +1559,7 @@ static int lm85_probe(struct i2c_client *client) data->client = client; if (client->dev.of_node) - data->type = (enum chips)of_device_get_match_data(&client->dev); + data->type = (uintptr_t)of_device_get_match_data(&client->dev); else data->type = i2c_match_id(lm85_id, client)->driver_data; mutex_init(&data->update_lock); From patchwork Thu Aug 10 09:31:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349131 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 A021AC04A94 for ; Thu, 10 Aug 2023 09:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234955AbjHJJcb (ORCPT ); Thu, 10 Aug 2023 05:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235000AbjHJJcS (ORCPT ); Thu, 10 Aug 2023 05:32:18 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BC8C211F for ; Thu, 10 Aug 2023 02:32:13 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so102899566b.3 for ; Thu, 10 Aug 2023 02:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659932; x=1692264732; 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=jg2L3vi9gBJrOjVe0teUOiDg+bStvnc1pYKHQaDLRLY=; b=GVmzERpBcBK1W096yDEP1r1Pl3nC0+Ij76R5rvLYqaXAJ0rvNj4BqF10hsYPhtJGNw RUtDvGR97yY8MaMbsZJqxIz1QLyg7lTle3/MmTDX9CTfc3dqkRZQ/0IInpPNJYNx27c8 IRNggJ1wO49lYHL/FuZdWIuD3pBTm3jvKM67Gku4PrR6avZydiG8aWbzGJk/lQLAhszX Ug5JKKHuAAO/PCiC+kIiEmPP1VPtGYa0XYuFMVSa43ywnJ6Q1Fl+c7M1wYmLFLjLyPZ4 WNCbwu8MMcSJJyov1C5EDj9tT0mX5MC887Kb0WNGXPrPl+sY3DXpZ8peS7PbqK8WyXsW EVzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659932; x=1692264732; 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=jg2L3vi9gBJrOjVe0teUOiDg+bStvnc1pYKHQaDLRLY=; b=aLIN7QNCXjodN6wsMdOAFkhtYEJKeRrgOcQ2/sJJVuz08KB5XBSWv0opu/TcFO6PRc pFT+kNzd3Rqs7lo1iIMvrG8PSA3mWoPyfjV1+4yxIlfjjyrpeWfOo8e9f02U9IoEZ+dY 7eEGI6RuyPG4eNPbC9nfLY+FuNkcnKrO8RmDmIdFmdanetZo6cfM9qp8Dah5Du0BP6AH DbHQibv9AisKSvnYyNbbWbhrq/26wHcx/b7XRHOsslOOuc7N5BR8D1X0fkDxgh0yNeSR t4yXqxqArFUWeOqovV3NGgyhGc20x4DJGspKm4Y2S6i6nwQzf/oQSA8aMZmxd829q1Co TeGQ== X-Gm-Message-State: AOJu0Yyt5omYCh9hAN93cZb2/+kMgD31vhzjE+otDddrem89OFPP3W2I DPydpZ7d2uA2aeePLc/IUcKlLA== X-Google-Smtp-Source: AGHT+IHQZHg+OP3fP402UEuzmAjOFlYBsh9Wcsht2n1PcPuSiQDN5MAAQTdnWn5XqV+qqH5El/nZpA== X-Received: by 2002:a17:906:3114:b0:970:c9f:2db6 with SMTP id 20-20020a170906311400b009700c9f2db6mr1489439ejx.63.1691659932008; Thu, 10 Aug 2023 02:32:12 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:11 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 08/15] hwmon: (lm90) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:50 +0200 Message-Id: <20230810093157.94244-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'kind' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: lm90.c:2768:16: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/lm90.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c index b25ae8b7ec90..e0d7454a301c 100644 --- a/drivers/hwmon/lm90.c +++ b/drivers/hwmon/lm90.c @@ -2765,7 +2765,7 @@ static int lm90_probe(struct i2c_client *client) /* Set the device type */ if (client->dev.of_node) - data->kind = (enum chips)of_device_get_match_data(&client->dev); + data->kind = (uintptr_t)of_device_get_match_data(&client->dev); else data->kind = i2c_match_id(lm90_id, client)->driver_data; From patchwork Thu Aug 10 09:31:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349132 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 50C3DC001DB for ; Thu, 10 Aug 2023 09:32:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbjHJJce (ORCPT ); Thu, 10 Aug 2023 05:32:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235013AbjHJJcW (ORCPT ); Thu, 10 Aug 2023 05:32:22 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42BA270D for ; Thu, 10 Aug 2023 02:32:14 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99c0cb7285fso100793566b.0 for ; Thu, 10 Aug 2023 02:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659933; x=1692264733; 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=+dbxV8jDAq1EoaltQOufp2JeN4AM753+j4I8xFIO03c=; b=a/mebC3vqRxsk9e1v8FTIdm9XQg37pDn0sUWwIs+DasXgmnpOUZv+E3+yNXDTn+nPT L+Wq4EwAy75iQwEklQsHlOG3xk3AiA4sUcOkZSKqmXUZkAZShG5sdt7Zv101JjG1db/N 1cLYxwQxCRr6Cd8tLjMlZ+8rJjt7RR7Rr2z4sdaQkk2ETuoH08NC4x692Q9FWCbPzzzX vNdWLzrYiuH53yrtCwNk98laH1KrBxrl9vJ7ypNDG84iZZCV/p4g70r4/XwtlouqNKg5 9UMhfcbs8VpwkySUumaVbxIRo2B7vbQF9SDoxHbKG+Dv8Sw7rCokfjPVS5orm6H6t7ZB 3ppQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659933; x=1692264733; 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=+dbxV8jDAq1EoaltQOufp2JeN4AM753+j4I8xFIO03c=; b=Mvq41Z8o4vximeOAkceTNyKjglzHvXI9JD5XE3L46ubt4ChUHss6Ji1efM4B/JfIh6 pthCZJQtVOWkjxgLFy0baeyR9Sb9mTsomiX0sm7ug5bO192hcYA/7q0DyZCSMno0zCeE 08ZzwgnXlX8MMFzP/3TMQ8ThkgFaH+sKnS3D8M53RFBntoyPOGJfR1eJYqrws3nu9yLv QBlLuzdwlKJM5h8e2MOh0nz2UlM36Q4Ywzp//3UHwAMl6/hXs9k+twK3Je5claqKjo9d dcXubkKbA0EVDAakGIyhIE7klZPgQudcfelJ3GYqs1LuKM4BhX7NeSBi89NbpThzV6i8 D+eg== X-Gm-Message-State: AOJu0YxoupHt1lb5e3VcmsWq9TEb7MokEkVJ5Cr09+qYDK4ZR9+q5/5P DRA5gy0NR8CG7j7F5iOS1u+61A== X-Google-Smtp-Source: AGHT+IG2az+RAiVp2KExWlf7/p/MwX3vfYCfcUUu9zYOMvNF3+CzvFrw09GKvHuTr/qMJrKkoz3zGg== X-Received: by 2002:a17:907:7622:b0:993:d536:3cb8 with SMTP id jy2-20020a170907762200b00993d5363cb8mr1496599ejc.2.1691659933435; Thu, 10 Aug 2023 02:32:13 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:13 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 09/15] hwmon: (max20730) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:51 +0200 Message-Id: <20230810093157.94244-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip_id' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: max20730.c:719:13: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/pmbus/max20730.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/max20730.c b/drivers/hwmon/pmbus/max20730.c index 6df4c5b75bdc..d56ec24764fd 100644 --- a/drivers/hwmon/pmbus/max20730.c +++ b/drivers/hwmon/pmbus/max20730.c @@ -716,7 +716,7 @@ static int max20730_probe(struct i2c_client *client) } if (client->dev.of_node) - chip_id = (enum chips)of_device_get_match_data(dev); + chip_id = (uintptr_t)of_device_get_match_data(dev); else chip_id = i2c_match_id(max20730_id, client)->driver_data; From patchwork Thu Aug 10 09:31:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349133 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 89372C001DB for ; Thu, 10 Aug 2023 09:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235098AbjHJJck (ORCPT ); Thu, 10 Aug 2023 05:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235018AbjHJJc1 (ORCPT ); Thu, 10 Aug 2023 05:32:27 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4021B271C for ; Thu, 10 Aug 2023 02:32:16 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99bf9252eddso106244666b.3 for ; Thu, 10 Aug 2023 02:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659935; x=1692264735; 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=SAPHq/2faQFRdHRdxnpVtoGa5K248Zp7jEovND6Y81A=; b=re6V8ITHblI7w78bDJokneVY+PC+NFRy1eshKTlyfmqn9rli8ias9Vn7D0SvNK65Uz brXj7fHpcGmZFEucTpyQBsvTuqXpDYoDx9xRMpdcx0IENOtbMJIxZCPCG5T7C3JtewOc PaLXDPMx26QqxGCNTAYPOqK8lNrj3zw2SQmZyckxf/yJzT1GzV/a3wnYaNNHT/IM7jSC LTv3ncISPr++B3Gc2eu2fGrUQwm5Jmxss0c66KYml/kI7k+xpfHWs0kn3x83JNGki+WP leyn0gxPs1EjKwxR2iruoCLdVcDJwz+LkXvmcxD7EY2E676VWL4nFPuXl6SjTBuCEjsw p8Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659935; x=1692264735; 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=SAPHq/2faQFRdHRdxnpVtoGa5K248Zp7jEovND6Y81A=; b=bHgIEye1rf/OFDBSGulEBlSyAdvImbVefumpjt0OB7dNjPa49kvh95QlN40fdQwsgx LRyvgUNFlLqMlrSmnGnkiWbwtuZ7Nydbli+Z2EICz5FLz/vS9zyWEj+7EovHmmqroMUW p1FtF2BO8v0XreWMCLI0XE3FM+0yWXaKxg3OMdd1YPUWF+Nxhmv4DyY5ag4dTRg2/D06 C+WOYaRd95ifvI73T9qTPl0Vy+uHc2iYmGVkcjYp+mfVZ5e0rHMNS6FjKYDkbbffCUC0 iPBmKMcfkvtzEcTlCsCN2s+LsOoxgqFfZ2MpZxlEeXOTNeO5FJ1BDA+Mfxrl0PkXAZeo 27eA== X-Gm-Message-State: AOJu0YwA/vux+T6BEA7vwSo7kjFl0//8Jq6TNPCfzi2uo+TYy194nok6 /a8r/K8r5sN3m0J7Ib+dwA+vFQ== X-Google-Smtp-Source: AGHT+IGXKlrxS0Q5Rl796sQlZfblf5KJ4MGAJVbPagX2emYOTc9mrjotrYOgLX7CAsWEGntK68/M5Q== X-Received: by 2002:a17:906:cc0b:b0:991:bf04:2047 with SMTP id ml11-20020a170906cc0b00b00991bf042047mr1667208ejb.14.1691659934804; Thu, 10 Aug 2023 02:32:14 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:14 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 10/15] hwmon: (max6697) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:52 +0200 Message-Id: <20230810093157.94244-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: max6697.c:705:16: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/max6697.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c index fe826fcf9990..7d10dd434f2e 100644 --- a/drivers/hwmon/max6697.c +++ b/drivers/hwmon/max6697.c @@ -702,7 +702,7 @@ static int max6697_probe(struct i2c_client *client) return -ENOMEM; if (client->dev.of_node) - data->type = (enum chips)of_device_get_match_data(&client->dev); + data->type = (uintptr_t)of_device_get_match_data(&client->dev); else data->type = i2c_match_id(max6697_id, client)->driver_data; data->chip = &max6697_chip_data[data->type]; From patchwork Thu Aug 10 09:31:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349134 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 9D6B3C04A94 for ; Thu, 10 Aug 2023 09:32:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231955AbjHJJcp (ORCPT ); Thu, 10 Aug 2023 05:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235038AbjHJJca (ORCPT ); Thu, 10 Aug 2023 05:32:30 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD7322683 for ; Thu, 10 Aug 2023 02:32:17 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-52307552b03so854037a12.0 for ; Thu, 10 Aug 2023 02:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659936; x=1692264736; 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=HRt2wJT+y3TcPVT+A8n4hP2Nq8Fhpdk7oZd4Q1inZS8=; b=CimkTe7EIvNJBUwMLxH+aTzxbqFP6lv/uxA+9GH0SaWlE6VMOI3BDO+mnyPkxP8DSO QJ5RWQBrL7bx0HyGIELlKcreQUrp7MyHxMmkDmytP0ptLOk5tysPCdwmXWMOZeNuUtQ1 bszfqFWvQEZNlnt51BRCFZMPphC449Sa6t3f6SqUvVXaZSLzWTbtcH54jTxW9RuChd0R VT5aUN5eietsVi41g+uAkLlP346IIqBEZyUvmlrRm9EyDQr3EEqsq9AAHFGQ+R37X0f3 PVQBNP0/TOoZBhdoQVQKlMFVKRsNMzOrDt0M5fux5Bfd/IgqIL5mZEZP9kYKsqoM3NDq 7BXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659936; x=1692264736; 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=HRt2wJT+y3TcPVT+A8n4hP2Nq8Fhpdk7oZd4Q1inZS8=; b=ZJ51W0iZ11ho98yZcmr9VIPfBV+V40TijVNXAW28vYevaE3RBZvhESyinbsLYWJ+NM fYWcYIUIxM7VyFBnIaxYeYhOF1Ln2kmhmneewEGVQtpF3ZmoBLoyHo1Vrb0qj7ZGBt/L 34BuYtI+5VIMHQQqIYMjmAXeiPd4HBqfoC5uC8mGn4QADCwWOVhxuh/5X7KefPEovJhJ qHLhRlH6jyYJqbQ60Ig6E3IDRnjwz9Hv0ZZhP+34aMxo20HtAsKYB0Ub5euUUVbD00rN vme7t1PA6h5gB9uPORuQaRuP7aQ3aKsvjUi8TjeaMAzFZH4zPtfDRiG3a8j3Mn4rstSB WW5A== X-Gm-Message-State: AOJu0YyPRKC8DTPpCc2XxOD1FjIEMuLH7B295wYa+tBw8K1iCnJZHpQf m01K6zF4CmpUd/r4aO0XVbWPMg== X-Google-Smtp-Source: AGHT+IHCshYEE0RT24l9GzuoDNfzXKTEV3FWEYZU7QyVW43TzPBu8dIFF/ZkItjPZdyXdMal1SgZ/w== X-Received: by 2002:a17:907:7841:b0:992:a836:a194 with SMTP id lb1-20020a170907784100b00992a836a194mr1624953ejc.59.1691659936251; Thu, 10 Aug 2023 02:32:16 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:15 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 11/15] hwmon: (tmp513) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:53 +0200 Message-Id: <20230810093157.94244-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'id' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: tmp513.c:724:14: error: cast to smaller integer type 'enum tmp51x_ids' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/tmp513.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/tmp513.c b/drivers/hwmon/tmp513.c index bff10f4b56e1..7db5d0fc24a4 100644 --- a/drivers/hwmon/tmp513.c +++ b/drivers/hwmon/tmp513.c @@ -721,7 +721,7 @@ static int tmp51x_probe(struct i2c_client *client) return -ENOMEM; if (client->dev.of_node) - data->id = (enum tmp51x_ids)device_get_match_data(&client->dev); + data->id = (uintptr_t)device_get_match_data(&client->dev); else data->id = i2c_match_id(tmp51x_id, client)->driver_data; From patchwork Thu Aug 10 09:31:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349135 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 D05DBC001DE for ; Thu, 10 Aug 2023 09:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234402AbjHJJcp (ORCPT ); Thu, 10 Aug 2023 05:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234996AbjHJJcb (ORCPT ); Thu, 10 Aug 2023 05:32:31 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71C651AB for ; Thu, 10 Aug 2023 02:32:19 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-99c1f6f3884so106218766b.0 for ; Thu, 10 Aug 2023 02:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659937; x=1692264737; 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=f7z4Syk6Kc3ZzVPMxaba4/zHmV32qqbPQTetDpsNyfg=; b=GkX2UOPCjS5i4pCGriaKQrDIrthcnHQzBJI063ghyBphmn7uLsR/zwgt0qdZFvJK3u ja8la5nmD3V/LZsAzWHRSCW9CPnrk1K6CT2dNRM/OBP12GDNhLof9IsMuHxSjm+Eyis3 KdrrCLglWakMyijgEU3w4NxgMQ90TlIeHmL0x/w9zHvwJcMkPP7Qt5wWy5+EKaNsL6DS crnywPkQ20rDByE+ueturRU72Opbxbnk4nrDNOmQ5BmGjfEZMtLJQAbg2wyXpztUXm2c jhWrPPetG7TEmcCuh6aNFN0T59nDRu180tuPQ2PmSXc30GW/ablJdsW9qDpLyAzfinsi /G5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659937; x=1692264737; 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=f7z4Syk6Kc3ZzVPMxaba4/zHmV32qqbPQTetDpsNyfg=; b=RQKvWKbtt4r+CFLfbGCuU8xeUWqG11MSuKCRn4sOFe8TeuckSJUMf6chkVmaVMHv5s tJJT+3M2krDzBJQq/lM90hxcrELS9g+lJr+D53vCHJvlBWIO2/t+j1k8zNSBarmpQlQG HdyUD6BdSG+yJRBdBhPOPBXfCw8xFzW3SYL+tiQqEFsRwJ36g9JHLybVtsSHVzvGmrF/ rQIbPhYnaLLODQOUZuuSE+46Qw7REAUf7oDqp/i1VCm3mDxwLLrB2EQfVHWXQwxSVKGs HJIESHdk0jTSTfFJA4uDkdW9qDIVosXKz4AFbopnvlp6jxJVSxpNP2/24lwF9g/gYH9n a7wA== X-Gm-Message-State: AOJu0YyQO6Zw1WzdB0xmj3kQtAMpyqP+LzcowM0DZZjxsKJMBvudeXAx Ii3YvRq+o/PDOczXocXcdCaJDQ== X-Google-Smtp-Source: AGHT+IGfkD1OBaq0SF/L7Hmb6rUDvdLJKCcLd0lwn6cW8ToP7m/fkwTkVwiGv2XmSu8FuLTXaVnwew== X-Received: by 2002:a17:906:5daa:b0:993:f996:52d2 with SMTP id n10-20020a1709065daa00b00993f99652d2mr1511716ejv.20.1691659937736; Thu, 10 Aug 2023 02:32:17 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:17 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 12/15] hwmon: (pmbus/ibm-cffps) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:54 +0200 Message-Id: <20230810093157.94244-12-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'vs' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ibm-cffps.c:492:8: error: cast to smaller integer type 'enum versions' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/pmbus/ibm-cffps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ibm-cffps.c b/drivers/hwmon/pmbus/ibm-cffps.c index 5b11aacda4d2..1ba4c5e95820 100644 --- a/drivers/hwmon/pmbus/ibm-cffps.c +++ b/drivers/hwmon/pmbus/ibm-cffps.c @@ -489,7 +489,7 @@ static int ibm_cffps_probe(struct i2c_client *client) const struct i2c_device_id *id; if (md) { - vs = (enum versions)md; + vs = (uintptr_t)md; } else { id = i2c_match_id(ibm_cffps_id, client); if (id) From patchwork Thu Aug 10 09:31:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349136 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 8778EC001DB for ; Thu, 10 Aug 2023 09:32:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235055AbjHJJcx (ORCPT ); Thu, 10 Aug 2023 05:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235064AbjHJJcc (ORCPT ); Thu, 10 Aug 2023 05:32:32 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20AA926A9 for ; Thu, 10 Aug 2023 02:32:21 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99c4923195dso102901066b.2 for ; Thu, 10 Aug 2023 02:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659939; x=1692264739; 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=2v+GRu6WDJvM0/2vgpI60e4B3OmPCtheyKzDBXMk+w8=; b=o4jgiMwMVX0IiDCQPHUJ6qSwSFOILMQCYj4lC3GhVWDoy3MWB9fMV70SgjJUh8xEVj wniAvKl0MSU7+zoPkTG5yuSe7zscSLxzqGGnaR4uPoYEtag8PPCHuR2yGHGsQHtqFTOG 2Ye/fqUAmxRf7V9k+W4w69VNPDmWKZu9O70OUs832sEHmjSGcVq/vFnZCJr893LyOrxk LNCHz+GWH/vgqakvzYAXW5jQb5sUPJXXUcrPp8BGzu/bIASkkc7IGdA931HD4tgjBj0d j6vYxF/V6cBJ2J2G6VwuujX0fFsI1JAgQl/jAxc5yqkPoFLYXPnoMzqd0qlPowB3lvVs bbsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659939; x=1692264739; 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=2v+GRu6WDJvM0/2vgpI60e4B3OmPCtheyKzDBXMk+w8=; b=aiG4ZWOBHQsItcZUH05ENIR2I0rOmzVUSboDsaGMSbguFgy13qOi4xWUjI8G6YAJpW OKosu1+27+KuEjBfpo4PwfOg998f9e9SKzDKVc8gsAVMsgIzmcGG5+BKZRwr5vu9y2AL HPFW/BDHJ9Z2WbenQsfIGAhp4Zs16pHXKUpDraaJqON9DPzkODxQG9X6m23mbDDzrenV s+ZyYkhqU9SfnSWvf+35cMuAD3TvyNk0AwuEp3xsJeBV2OKkgNsthiAcg/meJ3TbF0+Z 94ICTYGOYCzuyh8TkgKRs4dGNSJBU/mg3tqvmOWv7c7PKhII6TXZr0kqPo0Swun1IxoF K/tQ== X-Gm-Message-State: AOJu0Yxc+TXcVmO7tA1+3BwO3p4J6P0Xq9OyfRybCn4+P1inlBTbzbzI m5X+fcKCVcE6QBcgfU5p9/bBqg== X-Google-Smtp-Source: AGHT+IFCMVjABixV3IsTADinp1g9DSc/LsoKu78Jm61rtsCfnVREq1+p8G36qoH6UON4ybbfTIJglQ== X-Received: by 2002:a17:906:5357:b0:992:c5ad:18bc with SMTP id j23-20020a170906535700b00992c5ad18bcmr1902845ejo.70.1691659939768; Thu, 10 Aug 2023 02:32:19 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:18 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 13/15] hwmon: (pmbus/tps53679) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:55 +0200 Message-Id: <20230810093157.94244-13-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip_id' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: tps53679.c:238:13: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/pmbus/tps53679.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/tps53679.c b/drivers/hwmon/pmbus/tps53679.c index e77b12f342b4..5c9466244d70 100644 --- a/drivers/hwmon/pmbus/tps53679.c +++ b/drivers/hwmon/pmbus/tps53679.c @@ -235,7 +235,7 @@ static int tps53679_probe(struct i2c_client *client) enum chips chip_id; if (dev->of_node) - chip_id = (enum chips)of_device_get_match_data(dev); + chip_id = (uintptr_t)of_device_get_match_data(dev); else chip_id = i2c_match_id(tps53679_id, client)->driver_data; From patchwork Thu Aug 10 09:31:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349138 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 A3E9DC001DB for ; Thu, 10 Aug 2023 09:33:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235072AbjHJJd0 (ORCPT ); Thu, 10 Aug 2023 05:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234936AbjHJJdP (ORCPT ); Thu, 10 Aug 2023 05:33:15 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B01F35BD for ; Thu, 10 Aug 2023 02:32:46 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99bdf08860dso387619566b.0 for ; Thu, 10 Aug 2023 02:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659961; x=1692264761; 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=vAUHyC66z7nc30Y9XWG6TM6gua2fmA0h+hpvdL87oQA=; b=SIc9Vy+JFPOPoOiR2XBsSQpfLsN7tRlkgT0YcgkFinNzyV0DHaPo8a01y66TdJj/T7 wFPHJJEghR2vWS32YRlegJiP1fVhXQpKMNA9ksQGlJsqsz8JyRIJ+kAnDVgbeWQSNXU9 W6qD9VbuVObn/oSvhSD3aCBmkQDxF7U+XTZWJoMHYnaxn7Tngu+6W2TAzi1dU5r/ZlqJ xpIGYxbWW8WIwZ7hJ2+wH1RUnOHJEjLJDZ+j7gixkmFHvJ5b9tsNEDaLqyF9lXrhMKua C5FDRpX7T3Vrmbu/I1qTfuyP3mfhkrKjA+sHIFRoY9FPNmi0YUkJ0jewRQYIbJ7K7yK3 lvdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659961; x=1692264761; 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=vAUHyC66z7nc30Y9XWG6TM6gua2fmA0h+hpvdL87oQA=; b=GnRLlQEHeO6c9AOtdiEmlCNy4D0OUl3wxnG/9O2qDqwMRMKGPy2IwlCr0BUHJ5z9G1 EUQCmKFar2P4M5nMS4kLRxfBrB4k1qv9E0jfxSiNoifQ61Wy7NWTwZ6UUZ69w03k8/Fi emGsaqjlhqB3Pj181dcXLbxb6fsOxUWttFsCIWEDE4FseLmAUmjawgpUAPBJ5EoLlI9h iURv6xhSCXaCE3i1W3yai+n8NS24tOzXsryJv6Ze6yggiPOK33e9cFaH+rLBnMeC3Zor ZRGDPDApBvHAZ0Lg8/cpxOIgIdRF6it6RMNVVOGYUWl4nPp/k3rTXJS2zF3Fb8qC3w/I qfPA== X-Gm-Message-State: AOJu0YyCgLU6LH8W/2Ktqb8hUX2MrPxZUoF7HTn0iSFRvKWsmRQ0BIIu yYL4WbPOPod/5sSFgfq42qAv4WQLPVwwJR6tjQPiRg== X-Google-Smtp-Source: AGHT+IGNF/Vs6kB3N3MLb9XZ6oEiQnvfsiUtTgSjQi50K9OZa3V1kADiyNra0EjkW7lomY6apVyZVw== X-Received: by 2002:a17:907:3f9c:b0:992:103c:43fa with SMTP id hr28-20020a1709073f9c00b00992103c43famr1820080ejc.30.1691659941241; Thu, 10 Aug 2023 02:32:21 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:20 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 14/15] hwmon: (pmbus/ucd9000) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:56 +0200 Message-Id: <20230810093157.94244-14-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ucd9000.c:591:10: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/pmbus/ucd9000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index b1d1d4214e69..8d9d422450e5 100644 --- a/drivers/hwmon/pmbus/ucd9000.c +++ b/drivers/hwmon/pmbus/ucd9000.c @@ -588,7 +588,7 @@ static int ucd9000_probe(struct i2c_client *client) } if (client->dev.of_node) - chip = (enum chips)of_device_get_match_data(&client->dev); + chip = (uintptr_t)of_device_get_match_data(&client->dev); else chip = mid->driver_data; From patchwork Thu Aug 10 09:31:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349137 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 C2818C001DE for ; Thu, 10 Aug 2023 09:33:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235020AbjHJJdC (ORCPT ); Thu, 10 Aug 2023 05:33:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235095AbjHJJck (ORCPT ); Thu, 10 Aug 2023 05:32:40 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69EC42D7F for ; Thu, 10 Aug 2023 02:32:24 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5230ac6dbc5so856122a12.3 for ; Thu, 10 Aug 2023 02:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691659942; x=1692264742; 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=v6MccEidlFrbXaCtF9Hw+fIgxQgYPx1+FTmvr+egMSA=; b=lTlsdFPpOrk1PmhRa6o5gwo+xV+lOGLPDHQbkbSIhi0hopb3J1UOxKupM8ToyN7hMu wtCr/r79A8SAFpahPqEp850BHLZSlvU+wEiCPtTLzISouSaGr92sZzsEyxlNH/RzO8PR ZoMpWaRZsWMpSyq9gAwyE8Db6yM/7hvA2eqWqrQef9Cr2lm3jsOAJ9KBkrR6yK7wIsd0 AnUbcBGqetkpXrQR4I+DwtbpBN5NqnAsoSPH22pbFI+Nu8kNg5YRK5zu15TAqVbHe0yD eZaS6vS/cRUVQuSdQenjJC78wxeXvxOP6yftX99JkbCVms6olyipb87PGcyC6Iw6usq0 PWbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691659942; x=1692264742; 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=v6MccEidlFrbXaCtF9Hw+fIgxQgYPx1+FTmvr+egMSA=; b=OPPcVkGWv4jJSGppUp1k0NNC6mgH6QiVAgWJTexvAOx9XTd+N5NOMzGhx5MlkPqCHS TN4XwbLBWtWEwj+AW5mQPi5AyxEys6hWBqPD3KVJvbMvQF+/xMYRwwo/dBWYsGyNSov0 9gLEhoW3R/wvv6eSRbuWlcyDtlDANc2IBiiA2/ZhubDbbUTFGmxg7OlNCvweAbpLbqKC TguvBWUzSvh5U2FtLT1Hq29/lCsh50s2LX0qoTqCX3yfxKFKoJP0CaBSqq64lB67UoVQ Qs7psr+iIPER9eg0zEz9BreGtVOO1+1wv9LoQLmGNZYQcXiW+QL0Rqrbvifot09NnggT 2MXw== X-Gm-Message-State: AOJu0YxfFNnK8B+65s60zJp4qj8FjhYhONDYAMr2c97iQ3P9sd+GWe2j krufTU8zzX6RphZ9WOi0albGJw== X-Google-Smtp-Source: AGHT+IHK3Y7A+Uts3kdFgZJKKp9q6BtdcjNZ3xC7gdcT/zFV6kGQdOs1+X9Qni3xs6DKHL9qoAzk3w== X-Received: by 2002:a17:906:23e9:b0:999:80cf:82fd with SMTP id j9-20020a17090623e900b0099980cf82fdmr1508234ejg.18.1691659942681; Thu, 10 Aug 2023 02:32:22 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id e22-20020a170906249600b0098e2969ed44sm667642ejb.45.2023.08.10.02.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:32:22 -0700 (PDT) From: Krzysztof Kozlowski To: Jean Delvare , Guenter Roeck , Eric Tremblay , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 15/15] hwmon: (pmbus/ucd9200) fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:31:57 +0200 Message-Id: <20230810093157.94244-15-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> References: <20230810093157.94244-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org 'chip' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: ucd9200.c:106:10: error: cast to smaller integer type 'enum chips' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/hwmon/pmbus/ucd9200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9200.c b/drivers/hwmon/pmbus/ucd9200.c index e4aad64b2d94..7920d1c06df0 100644 --- a/drivers/hwmon/pmbus/ucd9200.c +++ b/drivers/hwmon/pmbus/ucd9200.c @@ -103,7 +103,7 @@ static int ucd9200_probe(struct i2c_client *client) } if (client->dev.of_node) - chip = (enum chips)of_device_get_match_data(&client->dev); + chip = (uintptr_t)of_device_get_match_data(&client->dev); else chip = mid->driver_data;