Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp448028lqt; Thu, 6 Jun 2024 08:12:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWx3aBEoyoaHahTHN32H+TFTsitS4lNOysnuADz4nR50u8Id1sogVfPgzzJrREQq8/FotdBSg/08auXO1vPnEpmaoE3mI97kDdtEIZEHQ== X-Google-Smtp-Source: AGHT+IFAOQgjtrGgmozizWhKNmGp098bwEx6KIGl6mI6TWKnAgleZsbaoORwzfUnfalfLJ53o6/C X-Received: by 2002:a05:6a20:a11d:b0:1af:fff9:1c59 with SMTP id adf61e73a8af0-1b2c5558738mr3866565637.2.1717686749211; Thu, 06 Jun 2024 08:12:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717686749; cv=pass; d=google.com; s=arc-20160816; b=xXj0fijrdzwYd7D72l4eO9s/qJQRIGDdn1qnhaFw/JjGc201E/WseET4JGT/Gotw85 yE6k0QCySAgZALsu1k9IoeTR0BxP6tbUVVXcIJ+eEL3dAD1F7diNGO4wDG9dgwELkblk hwUY4Vmyjog+B5s9m/Bb20Hf12XBPuSgFCbgSCBojCBdikanPGQuCrJ5ZYcaOTa6Xdq1 piKgAtMSrqJgfVe/nAeiNNCuzIOT4yC/1GnpddRCXO3vQ6aFC79biHFv/ASUlZ9vl7Jp gAQAupzN46lGmQtjR9S0d1Oz0G1xHMShKu0TnCMB1mzXpDhNgmKz1RDWHWNnoFlsET0Q 2Vcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kFnV2pRf1FmcK1ZExXtDIcGcJDZUgCsecv4UoOT/g6I=; fh=cIsvOsK01M6iDnzQmpkJZO8PjPWaCHZIaenn96VlgI4=; b=tLE2H+fG73mQr/059yThIKlAvZHh3gMdelmZvE9zPGkv/0PDt7H2+NG6GJxEjoS5XI BbGRrkjQF84egXvh7tdMeMy9o180UL0WTxRoIlIK8cp0JWFu3in2PtAWa0BUL/5MwaN9 EclPdzNSUBvanyj+y1LfPNkf2dkfVo9kqhKPJBOnErxPOwfgzy+aTRzgCdq19XiIoTab SQUz6rJF7NliRQz5yKauExSEFGoKXpSCM/npEgSb6gcUbj0Servedlm/9nsrffdylxCh tTNK5Mdah8LMkpCWzoZXEvWNkvG28o1sKlSuQCQ/NXt3PStpbqgkNBySHb5c0G2zA4pD +IHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lmbm5cNx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd4c730csi638101b3a.183.2024.06.06.08.12.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 08:12:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lmbm5cNx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204486-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id AB59428D701 for ; Thu, 6 Jun 2024 14:59:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49D72198E8E; Thu, 6 Jun 2024 14:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Lmbm5cNx" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 CAFC91974E1 for ; Thu, 6 Jun 2024 14:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717684616; cv=none; b=Q+qTTtmMPP3U0KD0fhdxs8YIYHCbOwEFtNfUZISfT6M0actW2OVtoqZ8uaslajYVcgMqtm5wOXRTKeikhI/3Mey7W2TXGrkUONLJPz4cEa08jUZ04SqHPhbuvz3eKhfPFACypsmJkzHNwkoY6YJgU7q1rcjNwvXCDIqMda+f4tw= 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=Lmbm5cNx; arc=none smtp.client-ip=209.85.128.53 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 Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-421396e3918so13843015e9.0 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=vger.kernel.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=Lmbm5cNxd+hXB9PBnc20FO7XqEauoTlAyMRlzVlYbrV3n8upXU7cIfJG5lWWiKBzVV TSfy+CoqUJJVoljH0manBtq4eaEeY2enwUCMBzggIHjR6zG4Be+eW4Q4yfmuq0CTP/XJ zMiApBDChc6fDtFQ0N15D6+ULws3DH06UblYR713qDBxJDKG1ZZqUnyfP+koVO7NTVSw dgEi+4Db0dnqazl5EeIQFksMao5HcrOORj42fqphkqwXSQg1QDPyWmkka8B56mnjQus7 m7PcU3L41XEVZ1Q/OmFRAK0E/Fwz9zP4fw8R6E8iwwl+CG/OJNkhQCHd5uOHM/hF2ljB 9USQ== 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=KRWUwv+aZ6QVt+Gw0X4oixBGdl2GRbQaWmYYcv/NBxomch+hbfUqqe9ucxP4tqliCF 5qdsxoRFTKl7SDEilBVP+TtcG4vQAqLvCmwlBpp7YNr8RAyB94LsYRJSMMh2odq70+SR XhZDeFEifdNdp9QB3r1SqaWWBquyuJK5ImmpQRKCwFlvW+60S50b95aPh/1n10PEzWj9 wllFfIpT9rnrup48tn8vSiIQlc5Uu0CQuqPuulS3wz/LdwV1o6sv9HHTWk8blVcdGxra 4SizCNVgcXdrSeWCjUYU/+ioZz23jbWKbkZ9p7EN9JG91V0kG60QDuIz+PI6r6+UTpen 00gA== X-Forwarded-Encrypted: i=1; AJvYcCXSvfLiRgKWEjlQ4aXK0qs47h7gPCLzOuPcoXRI9ogxCNVe/ys69NoanLpbIkRoor+gfprUOWsQvdBU6yrVHxk8BihXzBhEfgaRf2uU X-Gm-Message-State: AOJu0YwRuH3vk/B0AFy5DodiQ13CLu3bdHrv7/mKNRSEeJ2LwJbm8EOf l3kKCzJRyPzi2/g0RLzXJ3c0nyprNWeJsFCEjRLwh7/EIfuiqdwDJHi3qh7mCJY= 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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit '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)) { -- 2.43.0