From patchwork Thu Jun 6 14:36:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13688594 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E3EF6C25B75 for ; Thu, 6 Jun 2024 14:37:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IY93kDoGGdTqzL0GtyHL4yi4QsAv55ikLyUYboS6U4Q=; b=H0TlSzbqiawimE 1WkgM9rkzU0nxjyGLU1mg0jUm8dBsPhXqR/JOji2D3Kob12/ve322N95DDftAsnJ44RG1/KHqtzVz 7AL4AFauBH3lxxfvThZk0MpmYrkszyheLmWNbFJY+G87VNC9XfHkCYycCx4Kn9ozInYAA8kufAu3P UcnLSA5ytBh6WdYkKULJr3sGKJ9t/8aPpMPYjUoKOHtn/7n+QOuLb5bid3khXNW/IPXGsX+LXP4+M a31+aWK9at2BYKqGPtcHHiAHqEjGH2BpyPDICGLiSAY9Kstxs2HOKqo+33hnHwzKmyjIlJoAuogDP kRr+E9mLUELjFAq+QXFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFEEe-0000000A6V1-30Sw; Thu, 06 Jun 2024 14:37:00 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFEEZ-0000000A6TW-2H3G for linux-arm-kernel@lists.infradead.org; Thu, 06 Jun 2024 14:36:56 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-421396e3918so13843005e9.0 for ; Thu, 06 Jun 2024 07:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717684613; x=1718289413; darn=lists.infradead.org; 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=kFnV2pRf1FmcK1ZExXtDIcGcJDZUgCsecv4UoOT/g6I=; b=gFyy2blk2JMI1p7rxE9SP3fBK6pqCNhkzIHdllsLWxVEHIIrBTR+fniqtIIaEk9ShR du6mjk3vgFUscJs7JeoHd1wHSWSMNjlVssNiwvEFhvS3MfCA7VHhribnKL6fKBvtifzR pYA/bwO+keMMHSIxl7fuizbml0/yeoB5Ap8Xqo+7tMaILKVkbQeavFbGotjJZDIFUvt5 MNS761KVV0XFcgBh4KYQZJUtAFLtvLZ9HTGT9pm7/6mD38+uzjQ+qg7gvWJh5s/hkRvZ Ri+Zzq+HnycDetawbB1op5fLn9QDEDgfgczGVIdA2+6DLZbxatqZrBhxu4CpxLrtVP7M KcNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717684613; x=1718289413; 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=kFnV2pRf1FmcK1ZExXtDIcGcJDZUgCsecv4UoOT/g6I=; b=uItG1mh5sbYYsh23GA5maYXY3iOVSSDNqSWZHHQ+Et2EmQymsyGwzwDXsFghGxaui4 IXkHwLCKcp8ncW3JYNvTAirXGMkTIagomGZqjKRvMh7pmETuqSGg7CGYsbQPyJMlXTa8 czGeX8r2wY8U2Rev+LgE56078V9OZzOnEusXK2r4YkwJs6kCUD4fuxXqy4zVdmLweIKg VnQ4yro3gkNuR5YJ+Go9MrOSY+1IFECXCHGUtvQC1dL9e7VK8ZEUEd3s7/pOv6GjTnAo hPpTY7Fxf6+/Rqbo8FjVFCci7m9J1pNUWp9GqzkHN0fYB77iPzUzgZ6uoItstGSXWhzh ZuPg== X-Forwarded-Encrypted: i=1; AJvYcCXILXzYv7mprZAFc+AS5NSw6Ovtcrbk0abqxl5WFO+3dw+rsQzYazol28dd4I2BEPcARX3rvYLxGVTsMTYorXOCpUfFR7gzW7vs5cv8XV0pMCoalvg= X-Gm-Message-State: AOJu0YxyoH3uLGRaMVQ8cVt+0ysyOgj7UFe2TlG0RiGZAsmmN+p4J8QA YcXQgSoHR0zqeRhdmy7Y5KiWMnXJPZRNkkSP6LiW4GZY/JoGs9kZeZQh2o3D6co= X-Google-Smtp-Source: AGHT+IEl9ZyRAcSIX5UQpPead73VIlTKgZG4JDvlzUJFXbj34q/+RJSy54ckSAI9W87xI9+q/46GXg== X-Received: by 2002:a05:600c:138f:b0:421:5604:d1c1 with SMTP id 5b1f17b1804b1-421563503fdmr64858635e9.35.1717684613218; Thu, 06 Jun 2024 07:36:53 -0700 (PDT) Received: from krzk-bin.. ([110.93.11.116]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42158148ffasm59540865e9.38.2024.06.06.07.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 07:36:52 -0700 (PDT) From: Krzysztof Kozlowski To: Chanwoo Choi , Krzysztof Kozlowski , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, patches@opensource.cirrus.com, llvm@lists.linux.dev Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] mfd: mxs-lradc: Fix Wvoid-pointer-to-enum-cast warning (again) Date: Thu, 6 Jun 2024 16:36:47 +0200 Message-ID: <20240606143648.152668-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240606143648.152668-1-krzysztof.kozlowski@linaro.org> References: <20240606143648.152668-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240606_073655_601223_E9DB63D1 X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 'type' is an enum, thus cast of pointer on 64-bit compile test with clang and W=1 causes: mxs-lradc.c:140:15: error: cast to smaller integer type 'enum mxs_lradc_id' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Year ago this was solved, although LKML discussion suggested warning is not suitable for kernel. Nothing changed in this regard for a year, so assume the warning will stay and we want to have warnings-free builds. Link: https://lore.kernel.org/all/20230814160457.GA2836@dev-arch.thelio-3990X/ Link: https://lore.kernel.org/all/20230810095849.123321-1-krzysztof.kozlowski@linaro.org/ 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 73893890b50a..b2ebb5433121 100644 --- a/drivers/mfd/mxs-lradc.c +++ b/drivers/mfd/mxs-lradc.c @@ -137,7 +137,7 @@ static int mxs_lradc_probe(struct platform_device *pdev) if (!lradc) return -ENOMEM; - lradc->soc = (enum mxs_lradc_id)device_get_match_data(&pdev->dev); + lradc->soc = (kernel_ulong_t)device_get_match_data(&pdev->dev); lradc->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(lradc->clk)) {