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: 13688591 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8F191974F2 for ; Thu, 6 Jun 2024 14:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717684616; cv=none; b=jri3Q/fzw6/Qbico6LiFh7rXr0vu5dBVnvzipQTI7Ob7OLEtEdPCZ3iKdOKUU6d2KYs0Vpqse8S+l40xXbcOBznW1UvwjNIaCO0KjNvD1iClGVB/7VUQ6zB0AplBd6CuSCI2R4vAPtN+eZG2GCQdOd+AnrbP1K2HQD9u0WyZsRg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717684616; c=relaxed/simple; bh=9gyIokVicuhxbeWTupBDVovN5lebwLBLjKOrrkbqEoo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bGYPHad/XjaWLshpkHgXwSk9QjVsdc1atSqSopIIeMWdnAENNvJGRMxXXYVVSmOP6kAyzMwE/a/iOA7HNCstEJ2rTtY6CheO4IS4UiiaHsz8u6EuAU2Ge/SD2q1YH3keo51RMiCYo89zVnnaep6fgd0iSG7qo1nNXQeuI4OUac0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=OLkb3e8X; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OLkb3e8X" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42159283989so13472325e9.3 for ; Thu, 06 Jun 2024 07:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717684613; x=1718289413; darn=lists.linux.dev; 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=OLkb3e8Xobph7PjZDIkDq29E14dp7IiFJZJPpD13MazK4wqDoe5Gkf7XgavqtU8N8m 4ula2c4zbKDuh8coRhqALZVzimB1wG5HUomDID3bbeZGNkkvU+iDee0hLkeh/zeDDS+V /HPvCIsmDr7X0la2mox6L2cv/QN0d7+03kSTWiugQK7dCrdCZ1smP+0ADPp3UCiEs6Zi vTMBKScQ1jNeHNeNK9+jEgc1aHd1+UFmzM9pQFZJO7aqnToBUXTJfAv6TqxMSfpBxtpV HDiimrD0auDAKH13adIL6PustdZIvHy38D4MHTKj+otV55Rx5YNK19xu6pgTxuzVMMcG FK8w== 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=VqWV5hR79QiiaVuuG7n3ctqFWH3KfNhebUo/dGNmCUrbBzE8mBWTPcPP7fzb4ttHcG 2344GRzDYynINBOB6ht2fqo0+pk+R+jxhmAb+fNO4eyKSqRpQCcONjDsjlPZfTOBMEkK UmEpRwWCu1WdcPYOKI878gycrlcUlM0pHYLGX1SG9I1VODZaSXv5jja18B33C0cnraJ3 JoQuRMa1wD/GEa5CKAL62Z1O2zjhsU4v/7/V+gCaA3ezKqyjIV9O5WtOP29AFjpKoagF Tj+IQWYJ2QWglwnijIXiH62zaY+C5jRuto9kyQnwpCzVy6cnUcwiLKvzq1Cy9LLE1QX9 WsEg== X-Forwarded-Encrypted: i=1; AJvYcCXBEShVOAUQrdxlVZLjYUtpmHTDCrFDZbCeoIncRJ3lgGPhhn0NF00hdcnK4G1QseFwcZESiTus4KDeCe/Y9piJdVUE X-Gm-Message-State: AOJu0Ywyna6Mvmhx/H//uQ3zWKpjhMp6VTXyWruk4lRN4JCmZQvWQ9ar 2zS3EbqMvBE303X9jggFpQob8EQyxw3D6ZHEyW02P5GDQbyi5S1+Y98Yd+5TRHw= 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> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 '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)) {