From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 390E7C001B0 for ; Thu, 10 Aug 2023 10:14:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234572AbjHJKOM (ORCPT ); Thu, 10 Aug 2023 06:14:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233043AbjHJKNm (ORCPT ); Thu, 10 Aug 2023 06:13:42 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D5AA212F for ; Thu, 10 Aug 2023 03:13:10 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 37A9okhh000824; Thu, 10 Aug 2023 05:12:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=PODMain02222019; bh=g0zYMgT838ZTmPF Jh/LRZx7cd7y0jlwkfv9V91Z/uYo=; b=NghcXBRhbY3jcPxs85S5pjXEQs2d1wR Svc+a5udgD2VSD6gTbvqPNXKJ08rQSfEjkzAVSRw6VorjFWM89khI8zf2virQHIn XRhk6KYv1Cd29fEhsFOrsVYlptQamPMs5A8Leuml91p3YR+0TC7IWJkFoeC+zunB TsRw1HpTvetNYXADBQElc2LVPhU0VlLJKBP6waCtm8NBAbnh98BeGbDqOLUItEI+ vdG+PlSeif+a5lT2/BU1VXB4Jlb0Imej/uooYOnYfxk4A5CaSB6Ywb+rbYnOWJUJ RcrWsBtK/w7iy/HUnPPsfB1E039K+HFFLsreRDIdYQzOujI2MYdx6jg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3s9juhvnet-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 05:12:43 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 10 Aug 2023 11:12:41 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.30 via Frontend Transport; Thu, 10 Aug 2023 11:12:41 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 9D3E511AA; Thu, 10 Aug 2023 10:12:41 +0000 (UTC) Date: Thu, 10 Aug 2023 10:12:41 +0000 From: Charles Keepax To: Krzysztof Kozlowski CC: Lee Jones , Chanwoo Choi , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Maxime Coquelin , Alexandre Torgue , , , , , Andi Shyti Subject: Re: [PATCH 7/9] mfd: wm8994: Fix Wvoid-pointer-to-enum-cast warning Message-ID: <20230810101241.GY103419@ediswmail.ad.cirrus.com> References: <20230810095849.123321-1-krzysztof.kozlowski@linaro.org> <20230810095849.123321-7-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230810095849.123321-7-krzysztof.kozlowski@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-GUID: P8WUHo_u8it1x4AeKxI28-bIj62ueHNZ X-Proofpoint-ORIG-GUID: P8WUHo_u8it1x4AeKxI28-bIj62ueHNZ X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 11:58:47AM +0200, Krzysztof Kozlowski wrote: > 'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 > causes: > > wm8994-core.c:631:19: error: cast to smaller integer type 'enum wm8994_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > > Signed-off-by: Krzysztof Kozlowski > --- Acked-by: Charles Keepax Thanks, Charles