Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp902615rwl; Thu, 10 Aug 2023 03:35:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5vRCF5Pz0ncqboSo8/F/z8Pxg6KPhRnp0GfZPH7RIzhVFi7TtyZZJAW5kRPlg4XgvFiyO X-Received: by 2002:a17:906:304b:b0:99b:674c:44eb with SMTP id d11-20020a170906304b00b0099b674c44ebmr1732135ejd.9.1691663699926; Thu, 10 Aug 2023 03:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691663699; cv=none; d=google.com; s=arc-20160816; b=TI5icD8gC8ma0gUnYGG7iFLMxahFRfbZftDi6zSPjjE9IMl8M1aM/+o+RUOcyLfxpS sJEHbiyXl02SdYIgR7PEg9aAUInvJ/JN/5uK/WMqhHL4uG7Uy/Eqz8vpkFYekYpP3cjv 1Lww97YLBWbGZt5wY++J+yzGcs3Pts89dL6S0blFjj7xrIMrj5e+gEa0QenGSGcWlNKl VBkA21QcoWPOjNIlOQLHHdLKCWcgna48Xg0gxndfp0gAeRdiJh+P7nN3+FyjfvvaeAjH 0aegfysXNjjB37i8tOdrv03hzMJEMulyhwsxFM9A5dI8pvlWmo6x1d8wTqUE9Rzv1aeQ fj2Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5+nzMX9FF8kMvDilSoJvEkDnwU2aF0sCzfp1fOHFLkw=; fh=WBlI1L+yoQSe31GwwUqQVKDOBZlMUDrlf/nUBWAshIs=; b=Or/4PAnJkREw1wGLkml69mjQvI7UaXjVgVaE3nH0whMHSccyoCAhUCKMrj9eRtc6SO XAcPcQsZ0ujQPkyYVe3tkdP3DH/uC7QXkasiGdKZkPDvjJyycshWLLDcTrJAnwlIF319 JczIlY5vFagaZftW0fRizzf9U9GGZuXBTJzre60gFBpDqP0zvWe28ntRRRh/HsSrdN+D E7ljdUVrqbDA08kx9mk8NgG74xJa6UYxhX32+SVhzD9W9MhmK25liBakkU2j2kI5ghJG nefy1ebDcnz3U6IlCIdLbZ4foXTFOqrP7h0rRHeED0m1wQZnTVlpe5W6PgGKZv5UEA/z hVvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J/QzEdro"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh20-20020a170906eb9400b00992e21b04aasi1349167ejb.720.2023.08.10.03.34.35; Thu, 10 Aug 2023 03:34:59 -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="J/QzEdro"; 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 S235097AbjHJJ7T (ORCPT + 99 others); Thu, 10 Aug 2023 05:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233488AbjHJJ64 (ORCPT ); Thu, 10 Aug 2023 05:58:56 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88355DF for ; Thu, 10 Aug 2023 02:58:55 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-317c1845a07so676300f8f.2 for ; Thu, 10 Aug 2023 02:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661534; x=1692266334; 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=5+nzMX9FF8kMvDilSoJvEkDnwU2aF0sCzfp1fOHFLkw=; b=J/QzEdrotJeq6mkMZKmknV6NSGn1i48xgkQlExfqCknCcWTmLMs+dKECTzaDTq2EZ2 OX9b58tvVjvvwoKEvSIfaVB0EDLFq8r0/LG956ROPx7m54ErELhjciAQ1tutZYTsbcLD tydeQgAnpCdXuBEFaGOS3hbuJdqwiksqMwqmtsPprrnsShUx3mX5eYrlwP8kgk8s9q57 0j7035BtnLYfAHRMkWtvJfauDV5Bb5jmMHQIhLQRByiZLUkGWC0F0GRgv7u8mehxz9W9 hhcImeg0tnEL6b6XTqcjtEsdymhyR+MTmp2Xnvkw8GLCiA9w/wZjnSXw1B3etrYs70ZY k8Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661534; x=1692266334; 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=5+nzMX9FF8kMvDilSoJvEkDnwU2aF0sCzfp1fOHFLkw=; b=FxsLdLgnCbMzOZxvAdiIaJtVSwjDO8M2qkafPjbNQ0432iyUCpwGrM2nMjhD2khuOh uUZsKq83LAuolUkVAxebUaI8RlD7o6srrQqG8XwSRdYvMe78Q12PLuEKxo4sIK9I4IN/ EjCx6SQ0z/QfTdPecsD/w21hr9wkuYi1dN9HZNTxBuj5gGCKdNVBPnHZwizOWyMw8etq vKAQoEGT/Qk1By2V6R2MEoDLm+K/fx2VVfzwdk7+vRlCMNtk5F/iejHSh+Vc/o6FV7wP TyzJld+T0a7cNG4jmeZKRvRd+t/g/GmwqjaJ3D1pqbm8VKKD28v3MB55JiuWJ5vQ2UH/ pZGg== X-Gm-Message-State: AOJu0YzP9U0Wq4Fx8B4K4xajDKt11EcaQIctzktwJjfTVAo6klS5MDHj jC3JMQv17dbfo1s75/aJiTYlVQ== X-Received: by 2002:a5d:4683:0:b0:317:39e3:7c68 with SMTP id u3-20020a5d4683000000b0031739e37c68mr1555463wrq.18.1691661534148; Thu, 10 Aug 2023 02:58:54 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id p1-20020adfcc81000000b003179b3fd837sm1621372wrj.33.2023.08.10.02.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:58:53 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Chanwoo Choi , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Maxime Coquelin , Alexandre Torgue , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, patches@opensource.cirrus.com Cc: Andi Shyti Subject: [PATCH 2/9] mfd: max14577: Fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:58:42 +0200 Message-Id: <20230810095849.123321-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> References: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> 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: X-Mailing-List: linux-kernel@vger.kernel.org 'dev_type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: max14577.c:406:5: error: cast to smaller integer type 'enum maxim_device_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/max14577.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index 25ed8846b7fb..1f4f5002595c 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -402,8 +402,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c) of_id = of_match_device(max14577_dt_match, &i2c->dev); if (of_id) - max14577->dev_type = - (enum maxim_device_type)of_id->data; + max14577->dev_type = (uintptr_t)of_id->data; } else { max14577->dev_type = id->driver_data; } -- 2.34.1