Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2302457iof; Wed, 8 Jun 2022 01:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlsBXIPFNfovhhDbKppdSPqq+I2VlTChBChrNwSCnWvVwOGdrU2b2XVxIcV9UtbKI1dRP+ X-Received: by 2002:a63:c5c:0:b0:3fd:6053:807d with SMTP id 28-20020a630c5c000000b003fd6053807dmr18058150pgm.526.1654678568108; Wed, 08 Jun 2022 01:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654678568; cv=none; d=google.com; s=arc-20160816; b=nnsv1vsIaUeL78FEzhP+dO2yhu9wlvcH6LFQLhVIpixAuVOQPZTyPLSG1plfURGDTC l961nZ+cqMMIk6bXDSd+invQt4aJ5uQC9wDwPQXLklp65viIyahs8uXn+zRAQ6kh5vGt mpC0A5O+d6rwwLNI3CVPEmQQ2TPQ8Q1pZm+rlIDe8HCErw28fNC6Jy/HRBn3JJrGbjlC sgO525db1NWDoYnSgua/A/gVTjH1C4hBNNKAWNuzy9ETHOjaQFxjgAyQR7fcewqIWW55 kFk263NJc6m2niPNSwzkje+bAloyZEbZFzJzqVbwlCIIrjTPjvCH1SG4zumixCeFecst IBeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=6Dp92UvD4PFVoira9tGHdMZveZMj/psXVKfyZHG4gl0=; b=yPjsF77ZTLBmrQIAxMBVvfrPRffQqdBBL+Kj1HNdeYxMAJr/Rv5uUntj/iPF1nhgpx /6O1uGpzOjBTZibK8QXr+x8f0kx+GYBsoEu+4aeHY6Uc62XVIDyacQ7m+CvFK+v5pMVD aCgkvx0fFNEN1k9+9S8nelxChsuLEBAULbAWh355V/0vyhANcYkLI1dk/u82PbgY+s1m RM5bW4f/wbVrQ1aZOSo5zz72qeJbsZH6T4TBMvMSFbXSfvaOQD+JBfez8J/1PpiPR90F smJH5YqJuzk9UkBtxrYjJhw8ClLYZGr8o70TUUEZFhnfUTFdolkJnP1fEkrNrvk023jb fAXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTXfWZPN; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o31-20020a635d5f000000b003fc85b4f6b7si26175132pgm.95.2022.06.08.01.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:56:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sTXfWZPN; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E2AD93DF174; Wed, 8 Jun 2022 01:18:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiFHISA (ORCPT + 67 others); Wed, 8 Jun 2022 04:18:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231510AbiFHIQS (ORCPT ); Wed, 8 Jun 2022 04:16:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D9316A51D for ; Wed, 8 Jun 2022 00:45:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2DA59B81B34 for ; Wed, 8 Jun 2022 07:45:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8012AC34116; Wed, 8 Jun 2022 07:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654674315; bh=kNELa0h/Et3bEDHoAASKJNwjXuAyfY+mJwRl/Z22E0o=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=sTXfWZPNE+nLcnCy1JNXuoRi7aBmSAXe1OWlBPuTKnOvhVi1vNFa1KtVhVdaAR2y0 U/yp74I3+5m6pZcB5oky1D9noylYbVXp/X9WvX8vL0ZtVaz2vg3igaBB28u388wKCg Nw4noum9IXLmT54P3cXyamYO1nfj1gE4LRICPkCpB7VXeWoPMG1tVxrhdaZzHSBq7g tNDwE+UQqCAHlOnik69nDxZOlDBqcqZy3rfmwmLPFxnwoE9LtQuxY6cZ+jqcUEQF+S XgMi03AVVQzPk0sJBjvt3RmzUIDB2pBJsexiy2R36OGPKkxYN0TRfx6UwYd3O3Vt+S l5Xcep9qgYwiQ== From: Kalle Valo To: Ping-Ke Shih Cc: Larry Finger , Nathan Chancellor , Johannes Berg , "linux-wireless\@vger.kernel.org" Subject: Re: [PATCH v3 4/4] rtw88: Fix Sparse warning for rtw8821c_hw_spec References: <20220524153716.20450-1-Larry.Finger@lwfinger.net> <45a6b6ea84c74ffeafff1b68c2e1c5e3@realtek.com> <764fc8f115dc411e82938311273d9b51@realtek.com> Date: Wed, 08 Jun 2022 10:45:12 +0300 In-Reply-To: <764fc8f115dc411e82938311273d9b51@realtek.com> (Ping-Ke Shih's message of "Wed, 8 Jun 2022 01:10:12 +0000") Message-ID: <87bkv3r43b.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Ping-Ke Shih writes: >> -----Original Message----- >> From: Larry Finger On Behalf Of Larry Finger >> Sent: Wednesday, June 8, 2022 9:03 AM >> To: Ping-Ke Shih ; Nathan Chancellor >> Cc: Kalle Valo ; Johannes Berg ; >> linux-wireless@vger.kernel.org >> Subject: Re: [PATCH v3 4/4] rtw88: Fix Sparse warning for rtw8821c_hw_spec >> >> On 6/7/22 19:25, Ping-Ke Shih wrote: >> > >> > >> > Hi Larry, >> > >> > How about keeping rtw8821c_hw_spec const, but move ch_param[3] from >> > 'struct rtw_chip_info' to 'struct rtw_hal'? >> > >> > If you agree this, I can prepare a patch. >> > >> >> If that fixes the crashes, that is fine with me. The other 3 devices will need >> the same fix. >> > > The ch_param[3] is only used by 8821c, so it doesn't affect other devices. > I will prepare a patch to fix it. But why didn't the compiler catch this? Is there some evil cast somewhere which removes the const? We should fix that as well (in a separate patch). -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches