Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5457488rdb; Wed, 13 Dec 2023 09:08:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrxx6hJjsz5C086NKFvrKL52iQ8dxM0fDzziYDYQWBlUYCG0t8qr3VdC7fdbzgTpoI/wEM X-Received: by 2002:a05:6a21:9993:b0:190:5e69:86ad with SMTP id ve19-20020a056a21999300b001905e6986admr4398240pzb.62.1702487290495; Wed, 13 Dec 2023 09:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702487290; cv=none; d=google.com; s=arc-20160816; b=iFs/Qlafd80EumQwSWLboj04vfZU3GoyAfI7btlwBcOWFjtc8tKsVjs10+lGB6NHIr DN3QTjo2ArPX7pioWNgkH/43lON3kHXNFme8ywaYdp5E3gvZdn1rC7GBcKLjg6Ye1OyF bAi7xP/KNKbbnx+noSwueVAjG5F+49M1XtYE8OudGesyZm1EbBJ0ZU0YN+N9+2iv7jlW KVo4coASBjfO807zT9wP2hgHKkmWMYR5pm50LHjHcnY87YavadoV1dirFGytKrpMCvFd DFDqZyjzOurbY64nark+MtL0nPXJRSlRFQuyS7Sk78vjidecb7rWyPkKuMCkGAzdOraJ w/Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=kN410wwRUNkyfPB7ahiFKEuZhRz6mV89Ym+9lK+dfNQ=; fh=f4dIorfYpvrEtypEqDl0xAr0U3fgNW6JnHp2tNMuoOs=; b=VBNXaZ9PRDfo2TfbF72vFva+NMJdtaiVR8T/Erfny/k4wVQRya7GtCPtqWO2bjK5/k jp3kd/v/WmUSSr/sgEP+stOJzYRQSeNlUwGXlROiD2sTWFg3tWueXHRwz73R6wDS2KpR +BJvUvlf4cYEtvEr5CtRJlHu69xueFpAGKBnbcaM/9YUbKSfiirmZJrG80RsVZkAOzri NdlcSf9VJZmJJ0nXY/x/jDLs0B1TodbAvBZwI/unv7oZ8se/ePuHzglgLkTps8hP2Tzm tXNFfxUTCa/5CTMVqVcG6nhrHauDYqip4jMDrHpJs47VjMU7X3kTHPy2cyUGQ97xPkjh pGVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U2BFaeSV; spf=pass (google.com: domain of linux-wireless+bounces-750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f4-20020a056a0022c400b006ce44fb7d3esi1117848pfj.394.2023.12.13.09.08.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 09:08:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U2BFaeSV; spf=pass (google.com: domain of linux-wireless+bounces-750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C4DE7B21346 for ; Wed, 13 Dec 2023 17:07:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF93A56776; Wed, 13 Dec 2023 17:07:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="U2BFaeSV" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE54D0; Wed, 13 Dec 2023 09:07:26 -0800 (PST) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BDGd2JP030010; Wed, 13 Dec 2023 17:06:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:subject:date:message-id:mime-version:content-type :content-transfer-encoding:to:cc; s=qcppdkim1; bh=kN410wwRUNkyfP B7ahiFKEuZhRz6mV89Ym+9lK+dfNQ=; b=U2BFaeSVEh4jQX0pbjz/c1bRKiSRNR cKg83IDMph3fuNpeMFtBzfsFkTiyymvHnb2icXcM3NRTWpzlvzFQwC7sgSgu1Ly+ IlXwOkYcbt9z5mxAHUwdnQSNr6lVPOblEUEyv49zq+J7mg77O1q7k0W3oocGmr7F U/e9S+7cE0J8bRv/7fFho/CyVzWJZ2yDH2/BZ9nVNx5me2WGwBv6M0Wy5Jjp2Z7E sKK5RKfJOx8hAWspFtP/q/lVYYi1613ArYmwlwagycg9GKIO7z47ezRKDzDGEPcr u4GCmcHhuskGb0kF0JHpUsGJjCAVixXLSHHA87qQp+ShVUwoA09ca65g== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uy5tvhpv3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 17:06:41 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BDH6eVM031494 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Dec 2023 17:06:40 GMT Received: from [169.254.0.1] (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.40; Wed, 13 Dec 2023 09:06:40 -0800 From: Jeff Johnson Subject: [PATCH 0/6] wifi: ath10k: use flexible arrays Date: Wed, 13 Dec 2023 09:06:38 -0800 Message-ID: <20231213-wmi_host_mem_chunks_flexarray-v1-0-92922d92fa2c@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJ/keWUC/5XNyw6CMBCF4VchXVvjDDd15XsYQ2qZ2okC2kKFE N5dYOdOl/9ZfGcUnhyTF8doFI4Ce27qOWATCW1VfSPJ5dwCdxgDAsp3xYVtfFtUVBXadvXdF+Z BvXJODTLfY5YQJFkeg5iNpyPD/eqfL3Nb9m3jhvUuwLL+KgeQIFON6aFUKWUGTq+ONdd6q5tKL HbAvzyUO2nwmua6NACgvr1pmj4ibXffHAEAAA== To: Kalle Valo , Jeff Johnson CC: Kees Cook , "Gustavo A. R. Silva" , , , X-Mailer: b4 0.12.3 X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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: lRec6QprZZ2S4zgOuvxWwXKHU4hYWDQ3 X-Proofpoint-GUID: lRec6QprZZ2S4zgOuvxWwXKHU4hYWDQ3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 clxscore=1015 mlxlogscore=600 bulkscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312130122 Clean up the last remaining zero-length and one-element arrays in ath10k to comply with: https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays With these cleanups done the ath10k-check script no longer reports any issues. --- Jeff Johnson (6): wifi: ath10k: use flexible array in struct wmi_host_mem_chunks wifi: ath10k: use flexible arrays for WMI start scan TLVs wifi: ath10k: remove struct wmi_pdev_chanlist_update_event wifi: ath10k: remove unused template structs wifi: ath10k: use flexible array in struct wmi_tdls_peer_capabilities wifi: ath10k: remove duplicate memset() in 10.4 TDLS peer update drivers/net/wireless/ath/ath10k/wmi.c | 10 +++---- drivers/net/wireless/ath/ath10k/wmi.h | 55 +++++++++-------------------------- 2 files changed, 17 insertions(+), 48 deletions(-) --- base-commit: 7133b072dfbfac8763ffb017642c9c894894c50d change-id: 20231212-wmi_host_mem_chunks_flexarray-78264e146731