Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1138247rwl; Thu, 10 Aug 2023 07:04:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFnCMFHRSaZ8NS/xZ3h+4bjptt03U5Duehv+EMYXh/CAMZ3w7eDF2eY/NbBm9I9PMMrJWQh X-Received: by 2002:ac2:4f0e:0:b0:4f8:bfb4:e4c4 with SMTP id k14-20020ac24f0e000000b004f8bfb4e4c4mr2324433lfr.19.1691676279478; Thu, 10 Aug 2023 07:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691676279; cv=none; d=google.com; s=arc-20160816; b=qMqTdWf04cACI23GrNvdH2LvedkD53tWYEoVRT9lIcoo+LF+F8LTfC969XWZYqi1Bq l0yIzX0obsfcPj3EmLqgUNqe4n5OKZMy0uMsWfU/ZepdHDg7hmOehu9pLgo4Zy08H7d2 XQNT8npyjQ5ckBMr7Po2z7MJh0Fu9ijk2c8TavEDBodlo2FEubMUPHOmGN0wS98JmzpA x6R8H+caPXfIJpZXWxHjArgpffMtp9az/AvnZAcEOZhPmJ5gF9NxsBultPdAeKTRAHoE sVqpSMi9WNcQhdYHesAgvN4fkTEg+UQzNtrLCEDWx7WL0IbD7x1hyzUJcaYwKFQX1zlE wwvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fUbUwoo6OheMueK6/JfpH1rYQwGOwGMskqMCESnJUIc=; fh=2fSFAN7MCUwQd+As3N4O+rdAJ0AjPBqop+V7vsFLMPY=; b=x2zuK1G3z7UmZ0xkdFKA1c3EuFDV0KvZ1kvQJWDI8sY1ZiPt/KOaEU3e3guKHSuaW5 pHHFAxL66MClSaaQgyFGI6SjcW7iGtAkCpnaTUgqQevJPRdymhdS2Gbq+HCZqIGCb2wD psnZByGkYNnvzF7j+5z2vUugVGRLvMxxFYsWZwh7GsTEUYrI+FIDD1DNHiJLKk145saB TTo6jAS/6OuZ8Lx5YHKO+jzqF/GrX+Fm3ct1KyKd2q4/YC5ViNt1mSeMey4dhuQMEjv1 BCDMdWCMRHiqxPMuQCXP9mVWjHCFTxnUm6J2FWEEtQ1ismYlbeb7zN3VOT3DDYR4Sl07 NSZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AtIcD3uO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a056402121200b00523100e647esi1500930edw.313.2023.08.10.07.04.24; Thu, 10 Aug 2023 07:04:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AtIcD3uO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234468AbjHJNgb (ORCPT + 56 others); Thu, 10 Aug 2023 09:36:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232999AbjHJNga (ORCPT ); Thu, 10 Aug 2023 09:36:30 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA21B2106; Thu, 10 Aug 2023 06:36:29 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37A6lQMi006745; Thu, 10 Aug 2023 13:36:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=fUbUwoo6OheMueK6/JfpH1rYQwGOwGMskqMCESnJUIc=; b=AtIcD3uOIO1cF6+Ge64APpEM+bWLB5yeyKTBHljvYgiWnWAdZ48JGzXTqjeuRGuN/682 sKRW2yPNFIzxJ8FdfLRsqxVrZsDaUO/9FwD6PWQRS7wksqO6bcrRZdupzM8ydd1uCHTI WAqqkVmgVaSC46isP/6aGH4G20KowZYnA4uSpn6sWVN92FqSyeSz+M/Dz8CEqhxm7qhg H60J1uUPWUmGoLmUIdVD7D8kt7fYBO82pgWZ6fbO7KjJSNXLqN8RimTwiXyTJxGPuSJQ li51IGIexxiPymLQkrlFgQ94oR0WltqhVEiRgTW49hRu4NCWgBV6pYn1nYedWIF7CuZL FA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3scqsj16s1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 13:36:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37ADaJV0029051 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 13:36:19 GMT Received: from [10.111.180.219] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) 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 06:36:18 -0700 Message-ID: <81ff873f-20ea-84f3-d29d-dc5441f2654a@quicinc.com> Date: Thu, 10 Aug 2023 06:36:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/2] wifi: ath11k: fix Wvoid-pointer-to-enum-cast warning Content-Language: en-US To: Krzysztof Kozlowski , Kalle Valo , , , , CC: Andi Shyti References: <20230810091224.70088-1-krzysztof.kozlowski@linaro.org> From: Jeff Johnson In-Reply-To: <20230810091224.70088-1-krzysztof.kozlowski@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: -eAclCM2FoCO0znynItk5D0zppLKW4_i X-Proofpoint-GUID: -eAclCM2FoCO0znynItk5D0zppLKW4_i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 clxscore=1011 suspectscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308100115 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 8/10/2023 2:12 AM, Krzysztof Kozlowski wrote: > 'hw_rev' is an enum, thus cast of pointer on 64-bit compile test with W=1 > causes: > > h11k/ahb.c:1124:11: error: cast to smaller integer type 'enum ath11k_hw_rev' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] > > Signed-off-by: Krzysztof Kozlowski Acked-by: Jeff Johnson > --- > drivers/net/wireless/ath/ath11k/ahb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c > index 139da578831a..ada4d68c7421 100644 > --- a/drivers/net/wireless/ath/ath11k/ahb.c > +++ b/drivers/net/wireless/ath/ath11k/ahb.c > @@ -1121,7 +1121,7 @@ static int ath11k_ahb_probe(struct platform_device *pdev) > return -EINVAL; > } > > - hw_rev = (enum ath11k_hw_rev)of_id->data; > + hw_rev = (uintptr_t)of_id->data; > > switch (hw_rev) { > case ATH11K_HW_IPQ8074: