Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1629404rdh; Mon, 25 Sep 2023 20:51:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVpyJAJFrs5t6x/SG+8X9iHldc1L+IqtikYnGBG2AzLjzsDjdTCrC7XkduyYtYwv+TtHL7 X-Received: by 2002:a05:620a:6a84:b0:775:67cb:3cec with SMTP id ud4-20020a05620a6a8400b0077567cb3cecmr412215qkn.9.1695700299691; Mon, 25 Sep 2023 20:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695700299; cv=none; d=google.com; s=arc-20160816; b=ANExbidY2NzxBtqp6o4a4bmGShF/tDEin6QeGv+C/x1Z/vpRvT3vcFzzWfKR5Ywuxw 9I++6JMdcP9fylh3VabLUTo3gLkOtWDFUHSw6241HlmdSNsxvw7FyB/NbTk3ZHQqPsyx dO52eTIKWCWamn6LqNFoOVZZsd1KssowZ3AZQ5rds7Ud/B/P7l+q304Z9HWH58yxqHV4 Y2+XtYotJQ74amzeR4/+nBFOW0UvhkQn+9hR8A4mbrvPe0STXV38OKIG0zEBF8+kOied YdhgWShqe9kHwNwtc3vDgh3vnm0oFs+ff0OOnKPUQwsaWCNTqMheOBAYBSlI8KuK44fq SuXQ== 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=O6GQ05kOGxAM4YVWuYvy/Z6qCm8b0cByMPYMw3YB4JM=; fh=Yqurp2QVmKsxsVRz5cI2IJoqPJzybJBAQEGanRvwrac=; b=Ech1Cu3mdd4CAkXwp7PCl68W8jkNJGzaDwJ6oqU5xgpwjCH+/jAL64diePdqWqZ+wn qq+4LMJ7Wf098LBbWYuLm2hsD5MyF0F0UhaFI+9/GrHPO1O+4VGAVybqAXDTHJ7kHEf7 DXOuIH3IBrxnvYNNnwvO0G3Og2eEyz2NgpbYtqBvxwegVwhUvoBEoJ8rHWcm/KtNzelf zB/XTkc5IQ8RhbUInZLb+sop+lE4UWfknhHLgUZVDSHQ796bNIRnbgcmHtRmNtYUTekv 6IGIQKHu8peD7LkdH5to5p9Mao5NwWc/kHJ49c8Ddwacmkgb+WKcI69FZGfcz4n+UFny 5CUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AwQBw2qx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s26-20020a63451a000000b00565701e9a36si11353495pga.752.2023.09.25.20.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 20:51:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AwQBw2qx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0F1B1807744E; Mon, 25 Sep 2023 17:45:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232220AbjIZApX (ORCPT + 99 others); Mon, 25 Sep 2023 20:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232062AbjIZApV (ORCPT ); Mon, 25 Sep 2023 20:45:21 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C284B109; Mon, 25 Sep 2023 17:45:14 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38Q0d24f007282; Tue, 26 Sep 2023 00:45:11 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=O6GQ05kOGxAM4YVWuYvy/Z6qCm8b0cByMPYMw3YB4JM=; b=AwQBw2qxwifO7KpAe1UD3QIB708vj5pk0zHgX+ruoQ6zpdrU5QWiqjFTRikytqg+YftE 7KUeMdAAgMXzWgysskXIGzId3cpvYSg5nfttzBXTJZQ+Sz3vUjkWcSFsTh2wBbO7PXI6 iHtYwmRjEHi30t7F5Lb5bvxxmOoTicZKhpePDyuRFfsVL4zNka6xDhdJJlUDpAKrnS1f CkXhTa1FLj7BW/ih7suAoqFZjvECfI7LhLYjL39mJT7gW9su+L8kHghgiUKfrZ222Gm5 jIlJmhPJaY26pIxKDj3A4rEhaK+CpP6UU8h8dIXLrPFrJ4/gqOArViYnQQwoS7gFH/3c JQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tb72shw18-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 00:45:11 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38Q0jABd019002 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 00:45:10 GMT Received: from [10.48.244.213] (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.36; Mon, 25 Sep 2023 17:45:10 -0700 Message-ID: <5591d8a4-24be-4288-88df-29fd5a11ac66@quicinc.com> Date: Mon, 25 Sep 2023 17:45:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH wireless-next 2/2] ath: dfs_pattern_detector: Use flex array to simplify code Content-Language: en-US To: Christophe JAILLET , Kalle Valo CC: , , References: <1920cc38db2e570633e13b37d50852f3202a7270.1695538105.git.christophe.jaillet@wanadoo.fr> From: Jeff Johnson In-Reply-To: <1920cc38db2e570633e13b37d50852f3202a7270.1695538105.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] 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-GUID: PcxPwyF9f3xd-1O33kimOP-_8PQf5iQM X-Proofpoint-ORIG-GUID: PcxPwyF9f3xd-1O33kimOP-_8PQf5iQM X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_19,2023-09-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 malwarescore=0 adultscore=0 mlxlogscore=850 spamscore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309260003 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 17:45:25 -0700 (PDT) On 9/23/2023 11:57 PM, Christophe JAILLET wrote: > At the time of the writing, the value of 'num_radar_types' is 7 or 9. So > on a 64 bits system, only 56 or 72 bytes are allocated for the > 'detectors' array. > > Turn it into a flex array, in order to simplify memory management and save > an indirection when the array is used. > > Doing so, cd->detectors can't be NULL, and channel_detector_exit() can be > simplified as well. > > Signed-off-by: Christophe JAILLET Reviewed-by: Jeff Johnson