Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp167042lqo; Wed, 27 Mar 2024 09:37:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuVnRpRRvhMm/W5oaEAN1MJIPZm1iRjeVfGFFLfkT1//v3dDs8mQVcFoSq9OB1XEbDucsGbtIyVdUEnFpctAC+Bx2sxIn3sL4XRe5mCQ== X-Google-Smtp-Source: AGHT+IFW4zHGb4wn0hgLD0Q3FPhjmShR22OwyMPiZkBUQCHjha6G7b55casexx5mZ1TjqQzdoJC4 X-Received: by 2002:a9d:6183:0:b0:6e5:2518:ae1d with SMTP id g3-20020a9d6183000000b006e52518ae1dmr474355otk.37.1711557420221; Wed, 27 Mar 2024 09:37:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711557420; cv=pass; d=google.com; s=arc-20160816; b=yf9x17dCsTIuQNKGP4ufSks19YVaNOpxDf7lUMwboMSbASBvar3ffeM5y7RT2NrJMh Z+ai0kbLvlE8LuYEV7B4TAOnwzISetLZQz6b+sWsU2R/rDr4mttx51ovcpWO3qmEWwlb KuhYdf6XSl5oOUV5Royx/nCK8RwUxX6Q5/aPi84STXgToFecz8LqovRIemNRO0W66Mli IKgkVrlAmtawD57NZ8jK6gnW9X6uI/IT7/f6KKHMfA7A0vuvxk9Xuz6IHOX9EPGpsmOM SbyrsJJcBxQkNNJiOqCc/uPeZ+ZRTDot0fv4rK2zNU8llyh0BA7t4Dg9OLPw5zqKDaF8 rHJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xgtWmVEsDFLcu1A8EvEyTLzh6xkczJ80UK97IYO3b44=; fh=VBQIMJUo9HQ9mVw7DgN6pyaUg/8YLrIBj3o0GSCx0qE=; b=f5EpRUlPxWuETNFA+0tjc0xfIOQROdmVQg5p8+hS/pDkIsGnFh3dnt7o6dgaYb/m7s CDwIXeNRPBlnlKx0VauqM4sE44R4LGHBq34E0NY5Hk0S3E3TTrZdgEH2nnS9Z66X1ICI Z1V/CbQzrmRNS8INZrd+0fMb/tA7zdABnHLGSwnEKVBO65k5fC4ARzUMC5+jSURBfhif tEwH5/7t53cItmkZQGDZr9zNzsrH36exA3/GYNuYXUcflEWWwkkaZGhGwq0hulrQLeG0 sOKQoRKOox8gqrrACbv61PT5gSQrNbpRwGf6oVZtGxqIX6OFjdWDs+h2dwj6LY2rRitm 9fgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YEFIF9rs; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t35-20020a632263000000b005dc956c2c15si11787203pgm.70.2024.03.27.09.36.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:37:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YEFIF9rs; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5373-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BC7C529FC47 for ; Wed, 27 Mar 2024 16:36:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90264131BBB; Wed, 27 Mar 2024 16:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YEFIF9rs" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 CF6DB131BCA for ; Wed, 27 Mar 2024 16:36:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557417; cv=none; b=ZQA6qiUng7YNW75Yhb45zpCfBD1E8R5C3ioVoAxM3ZAvHIc1j+TprtMKDoqwtSFl14hFXBLwPFI2GzFakoZa1rsHonuuT7ANxn3sTwem75URnbsrY5Eq3tsdNs4bINIWj+jwbqKws2mJTbWmVfOXnOIxyGP234kQVh82OszZBrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557417; c=relaxed/simple; bh=lzYy8Kji+MK52RfD99/YmEqnoRSMUk9wNGQoVEHsg08=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=rb3Fld5c6RuN9y7TJbPhRJNRlEiuWC/jfGwHduzsbCRtBie3rTLQSXSbC7ZaxZHQYL7cDkhdUhN9R5f2+Zv+xXRh51fJvxtqgUetnaH2qiO4tfDipMr4JAH0hknR3VeFGn5ScdGClWhOCQ5LHZ7x2rfRyB0I2R1tUzkmtjphVFI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=YEFIF9rs; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42REWK9n012346; Wed, 27 Mar 2024 16:34:38 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=xgtWmVEsDFLcu1A8EvEyTLzh6xkczJ80UK97IYO3b44=; b=YE FIF9rs2kJbgWr5BufWJQJqHp+FA7easj3orBx/bfMVM0ByazNKBvmufOINhTlNDd Bn5tLRyPfSO9MDhFWL9F7HnmOEynRmn84vX7cFS2FdKD6iWBbtnEitQNSHBFOBHe CEIYm09NgJAHZdwvyLPHhD4hUe/nlkXJoLG/QLh/zibEYOQST7thq2DUqZKihKqk KjvglRCT5qtSiZF4FFzaMQGeO/3BQJvl+C7c5G5Qy38ncIfO+/0/y2dGMufS0Uub OM/q9qGfbFx12gul6GLVnJFB7yc337/NAXSZKO0xEQMsm+gDa6QRdgyOfxSGKXFW uXltokcV5n09rbi55NOg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x477yteds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 16:34:37 +0000 (GMT) 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 42RGYaRk009216 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Mar 2024 16:34:36 GMT Received: from [10.110.28.48] (10.80.80.8) 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, 27 Mar 2024 09:34:35 -0700 Message-ID: Date: Wed, 27 Mar 2024 09:34:34 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 04/12] wifi: rtlwifi: Add rtl8192du/table.{c,h} Content-Language: en-US To: Ping-Ke Shih , "kvalo@kernel.org" , "rtl8821cerfe2@gmail.com" CC: "linux-wireless@vger.kernel.org" , "Larry.Finger@lwfinger.net" , "s.l-h@gmx.de" , "chewitt@libreelec.tv" References: <7f4b3309-1580-48f3-9426-29f1eb4052fd@gmail.com> <5170c29a7b565fdec2e004f9391d325328ef5a72.camel@realtek.com> <8a90f3cb-7218-4f23-8aa7-fcc68e2f4a93@gmail.com> <87y1a4yqvh.fsf@kernel.org> <5d117cf09134b034e704b8a1b5167235963a9c88.camel@realtek.com> From: Jeff Johnson In-Reply-To: <5d117cf09134b034e704b8a1b5167235963a9c88.camel@realtek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: g_GTkgKKqoMRmI0Bnie5l2JJdgqq-i_j X-Proofpoint-ORIG-GUID: g_GTkgKKqoMRmI0Bnie5l2JJdgqq-i_j X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-27_12,2024-03-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 priorityscore=1501 phishscore=0 adultscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 impostorscore=0 mlxlogscore=687 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403270114 On 3/27/2024 2:30 AM, Ping-Ke Shih wrote: > On Wed, 2024-03-27 at 11:18 +0200, Kalle Valo wrote: >> >> Bitterblue Smith writes: >> >>>>> --- /dev/null >>>>> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192du/table.c >>>>> @@ -0,0 +1,1675 @@ >>>>> +// SPDX-License-Identifier: GPL-2.0 >>>>> +/* Copyright(c) 2009-2012 Realtek Corporation.*/ >>>>> + >>>>> +#include >>>>> + >>>>> +#include "table.h" >>>>> + >>>>> +u32 rtl8192du_phy_reg_2tarray[PHY_REG_2T_ARRAYLENGTH] = { >>>> >>>> static const ? >>>> >>>>> + >>>>> +u32 rtl8192du_phy_reg_array_pg[PHY_REG_ARRAY_PG_LENGTH] = { >>>> >>>> static const ? >>>> >>> >>> I can make them static if I move them to table.h. Only phy.c >>> includes this header, so that should be fine. >> >> Do note that .h files can't contain static variables, otherwise there >> will be duplicate data. >> > > Indeed, so these cases should be 'const u32', no need 'static'. > > Or make them static and have accessor functions to return pointers to the tables