Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp946321rwl; Thu, 10 Aug 2023 04:19:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGmr8sMQGyublBH/TmGIFpauei7mim3O54rh4mCBAn35GYJb1peA6W0EEsZHJa2nMGqJhe X-Received: by 2002:a17:902:ac97:b0:1b8:3936:7b64 with SMTP id h23-20020a170902ac9700b001b839367b64mr2153840plr.1.1691666365225; Thu, 10 Aug 2023 04:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691666365; cv=none; d=google.com; s=arc-20160816; b=dkHPzDW/VW59GsKTyKdUUeeMmf+oX2kfkiso2kqQ958XmGGbzjHHFjajFFxOHEYB5w oN2FG7nqCKIY9rIuRjT+rd4wnKiGtgajWxthRfxAOU5nBtO0lQx9ydem5aZiOAISaxhJ KDngDh6n8uPKx7msk/KN2HFm1E8zaXnE7DDV5kwSx4a7aqauar2SvUM6dBvWALSDI9oi MWx2HfLX/rl7kwyH+4vYtgkmMG8YMKKf63+EveSxk4n0mIfL9VfMcj+uDfiSIMx/i94u QiAqUH3ij/rfmqLDzkuUuDcn5h3H8fk5bfaNR6fJartvBZH1aUJwVhyXlFzjkaXLtgs+ RuMQ== 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=bVuqAG+3F8qvCMUvzd26/3b8nCKRcSvskoI/mhLxS7I=; fh=WBlI1L+yoQSe31GwwUqQVKDOBZlMUDrlf/nUBWAshIs=; b=ueuG+KqDKatuTUFtdSJbdGxlyuhAtrLLkL/uPUhhqT+tlbXviv4n6iRlErbXbnWbE0 +47z7hzNQu8lK4D113lMS0KlwAe87a9AJgxJUuUur0MG9HXtAiK8KGIKtOJ0yQg0agyp FxL6XqRV/fg68lLEnCw235gVTgpA9jawKmHy7w7xqBjS8rFnbzDqXHfbmAbEfcPI0b9D ZnhbvrdpvnMxTjez3dQ77Nk9I9NaPxZL+hcD1oL3jFean61WQGpALfBaBd3WdnBFb1cU jUwfOO/Vpc+VbpjKzUUtGuUrqTzXFviEAjfOkXVNoewrEaGBMJyNos/K8cR3TIsnEF87 qaYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ksSOYxOF; 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 u11-20020a170902714b00b001a677821130si1231061plm.13.2023.08.10.04.19.13; Thu, 10 Aug 2023 04:19:25 -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=ksSOYxOF; 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 S233349AbjHJJ7t (ORCPT + 99 others); Thu, 10 Aug 2023 05:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231822AbjHJJ7H (ORCPT ); Thu, 10 Aug 2023 05:59:07 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CB4710E9 for ; Thu, 10 Aug 2023 02:59:06 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fe1fc8768aso6490595e9.1 for ; Thu, 10 Aug 2023 02:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661545; x=1692266345; 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=bVuqAG+3F8qvCMUvzd26/3b8nCKRcSvskoI/mhLxS7I=; b=ksSOYxOFVkT2qDMyrJ9QBdmS1xXtVYG/DwVFHFNz4VM0u1Y4d4rHdP8UHaH6PtL2mx sRpCcc7EbrpG3JOaow28og7kFgiPz0EXJwbZJdjZ/uCjEBE6XmzJjU3+bUBlXga/bm1t knQf6Nys2YwNfutTBqx6gCRKJzEtf1YKhgVV87fevigV7p8NiMy+VbWrDIRAKVGtCC/1 Fc9aYo1ZquPOW+MssbVo2S8L8Wp9gQMiMrdo+lLv6CGMOlIl7gXw4eZh7eJug4kU9ewe 1edAktLWh1Z47nqDcBw+OwBkRV02ozZ6JKqvie/i91XK11X200801VIS6J2cfGDJdAY6 MO9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661545; x=1692266345; 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=bVuqAG+3F8qvCMUvzd26/3b8nCKRcSvskoI/mhLxS7I=; b=ZhhZf3aXCzrbqRg3THDGLzqyilPTZsPz1aIs2qsEViTN+6GiS7vASK/WNGXhAenab0 tXn6wo2e0IS6p2HtyDU4py6aPmkNRT13Nx1gjKZbYg53wx5Bl6OpcI6v0OuuZ1iT8jH4 yH98+OjoOKZUDvUrQ10uF8oORTIHMaHEKfGz0/HoKu5AenqoAgIlTLA3EpGbzn4pKlKW 5YkZg9Wp71yXeADB9PPo75MaAGPKaee4/foehtBqgM+LUtuQbLUvtyjsvrHJymWCVfSP PX7gZMofGBfkRFuDONOxgQMqNi2Va5slesEo1hv01oUgDeF40UE9Uosi75VnHwKanUIh 4q0Q== X-Gm-Message-State: AOJu0YxhqKaZDYZO04iD9VOGXTr+5oYsH/9ou/m+RTNY8q68+vU2wN4C z5A4YJ6Wq8vkCmnr0DOK/LXZJg== X-Received: by 2002:a05:600c:2493:b0:3fc:f9c:a3ed with SMTP id 19-20020a05600c249300b003fc0f9ca3edmr1638634wms.22.1691661545133; Thu, 10 Aug 2023 02:59:05 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id p1-20020adfcc81000000b003179b3fd837sm1621372wrj.33.2023.08.10.02.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:04 -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 9/9] mfd: mxs-lradc: Fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:58:49 +0200 Message-Id: <20230810095849.123321-9-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 'soc' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: mxs-lradc.c:145:15: error: cast to smaller integer type 'enum mxs_lradc_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/mxs-lradc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/mxs-lradc.c b/drivers/mfd/mxs-lradc.c index 111d11fd25aa..21f3033d6eb5 100644 --- a/drivers/mfd/mxs-lradc.c +++ b/drivers/mfd/mxs-lradc.c @@ -142,7 +142,7 @@ static int mxs_lradc_probe(struct platform_device *pdev) if (!of_id) return -EINVAL; - lradc->soc = (enum mxs_lradc_id)of_id->data; + lradc->soc = (uintptr_t)of_id->data; lradc->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(lradc->clk)) { -- 2.34.1