Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp294678lqs; Thu, 13 Jun 2024 10:10:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUusIkY3In6RP5p6mGo/1EYHZv4zOzcSnMe8220+As29JbBfE4JWEimdSPu+CA4EqCsJ3f+CZxC9uIKKUW5PWhNCSh71pvCTKq16qe0Ag== X-Google-Smtp-Source: AGHT+IFQZIJII4UPf77b4KbtapjH4BgdUsD6k95YrjKd3iELE4MsnO5M730RTNb6KCSWF0xYEkJw X-Received: by 2002:a17:906:a0cc:b0:a6f:4e1f:e60b with SMTP id a640c23a62f3a-a6f60d4170emr27227666b.36.1718298600768; Thu, 13 Jun 2024 10:10:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718298600; cv=pass; d=google.com; s=arc-20160816; b=jh3WmjTOa++Xxb0t1ZwVNyNgG3AQftxo0aesKOd9KcxbRKqeBNhPpMOUFRvPwwKO98 tbEwQ681D4/pb2Pe1Ns2RxzC9+Uj/YMpw5dCpckKkJYdCgjT+W/tBrCGdc2Sd49/r9zL yWsvOu+q5X7804HieFvrmE9BVz0824qOcSO9H+6ex43KJ44Iq5Q/GWO4wQrrAqYSCyWZ x6ET0sAu/jXtoqaJB2nSYgOTHrY7omLpf5xM36e5O7oKDkt0njQhsmqQQy/zm+S0Ik9N /UxYIdGB8+cBnqKzVRGhVPzTQYUeTJg9bSeD/DsT0Rq73v5keMpnoZMnRufAh5l3Az/n aiFA== 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:date:message-id:subject :references:in-reply-to:to:from:dkim-signature; bh=gGyNc2FJodRSqHMTQx98Vo65nAG70LbYCqCBOycOVGU=; fh=6NIR3WRyc0AONigiq9PhckiGUvfxXjRzDroYLbqPmpg=; b=yDOvzhMzUFhk7xM+y3PCr742nUtx2iqW7e7HQAk9L3DBQOdG07X9dzL4tm1Lcud+uZ Ho1rdZMTBxIX7kAqfQ0mlT0TLP1vlLVWq6K/XMZisAJyA3LiZJBl+xiu1DEHn/WxmK56 J9SOyHTDoT59TOgVpHiVGdnDVG6fEQDH9gdY78ahkVkUJ+A+pi7VvFhCQcFqBwcIScnj RUacnDYyxrdpBxvj9yuMR20SGTj8F8rjtgU5BL7yOfqexmPIJoBi6eU/EseqrBMiPaIn r6Rt/nWPIEnCiBRQhf3dGQPOIDJUCsUydEGjHxzDtUWjqvOKbKNvTNvjU1PIbiTalnnp DhAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uSLLD7t0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d212fasi90168166b.119.2024.06.13.10.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 10:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uSLLD7t0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7C04E1F246C2 for ; Thu, 13 Jun 2024 17:10:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24ABA149E06; Thu, 13 Jun 2024 17:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uSLLD7t0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FA04149C5A; Thu, 13 Jun 2024 17:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718298595; cv=none; b=jmfb8FTZo0804pc8cQfvaQGLrHb/raZ6qlJlwuZiFqlw6I9jUgkb/gnuYz9c/9DyjYPCZCpVwWXda/1MKuY4DQOQ2mOzWU8Hzvh1jLwXIfPtrDltsxKdQcJuINuXaMj72UDoxb8jJlHdP817lheh+/Bgrai3nD9vBveivW0IOnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718298595; c=relaxed/simple; bh=sawuofgiTla22xNeYJ7qMOaw4kLeel2V7h6pjTPcsy4=; h=From:To:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=rlCY80xnw9f68x1KTOGDw3gPitMzr5zpl6P2mhTSGk7R6sQg22iMJRRAMwnPcL+duanyfvA4vdqv3BACkx7sXa+kmNy7kCzc9CYuwueyS4ck0p/bLXrqIQDFZqTuB3iov3xlPv6MI3fvwXyP8kkTgoog8uYn1uyCwRgnYISrAFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uSLLD7t0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E585AC2BBFC; Thu, 13 Jun 2024 17:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718298594; bh=sawuofgiTla22xNeYJ7qMOaw4kLeel2V7h6pjTPcsy4=; h=From:To:In-Reply-To:References:Subject:Date:From; b=uSLLD7t0C1sZaoqbsr/ALoQz7x5p/xxV5cigTZ7XYHqwypv5JZvPJFYSwZkP2FL9N 8uC65AYK11K2EKbEz74W951XcmEeJkVd2sc5Odf0zviaBSyQ3/FeUq+p2u6CJfp0Ax 3JqYIHeMZrdY0QyZQNysWBTYl75mLuSAF4D4uz7efP9PzRgT2WxRIYsUdcefM+CpcE FIr2Y9Y7GnlV6nK6W8749oTAB6sFzTu6Nozt050HrZ/5gZbK5xxhik4XXzKfPjpx2r rlR7T3ZNbpntTiCOG6ODOfKMRzLkghYwA2Ds1ALeoUN3LMEw2FoMgAsaJoEH3UmSlb TlUiENI91I4xA== From: Lee Jones To: Chanwoo Choi , Krzysztof Kozlowski , 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, Krzysztof Kozlowski In-Reply-To: <20240606143648.152668-1-krzysztof.kozlowski@linaro.org> References: <20240606143648.152668-1-krzysztof.kozlowski@linaro.org> Subject: Re: [PATCH 1/3] mfd: max14577: Fix Wvoid-pointer-to-enum-cast warning (again) Message-Id: <171829859167.2724644.8244967741458502000.b4-ty@kernel.org> Date: Thu, 13 Jun 2024 18:09:51 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.13.0 On Thu, 06 Jun 2024 16:36:46 +0200, Krzysztof Kozlowski wrote: > 'type' is an enum, thus cast of pointer on 64-bit compile test with > clang and W=1 causes: > > max14577.c:400:23: error: cast to smaller integer type 'enum maxim_device_type' 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. > > [...] Applied, thanks! [1/3] mfd: max14577: Fix Wvoid-pointer-to-enum-cast warning (again) commit: 9d1e745c2dc06fed0eb6e3b549b75669f9da77be [2/3] mfd: mxs-lradc: Fix Wvoid-pointer-to-enum-cast warning (again) commit: a377d89e5064e787deecfb87d9464ea18f5f067e [3/3] mfd: wm8994: Fix Wvoid-pointer-to-enum-cast warning (again) commit: 05bb1fb09b523136acb58421361a259127de68d4 -- Lee Jones [李琼斯]