Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3829872rwr; Sat, 22 Apr 2023 12:56:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Zc0VvO2DJ0zVI95jxaEJa2sIRrdn82KR1ujDRIeR877LI0QxNa2GeSPcOzURvKwbRs13jq X-Received: by 2002:a05:6a00:1904:b0:63d:2911:3683 with SMTP id y4-20020a056a00190400b0063d29113683mr11413888pfi.17.1682193371511; Sat, 22 Apr 2023 12:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682193371; cv=none; d=google.com; s=arc-20160816; b=xi+PpDdvPP3noi9Vn5DDkgQTfEqElthT7CwQsBsaFGPvvvdc2d/zVuR3j54+afG2BY NZcAS5KJRlmYhzIFzxdHmENh/5uve8TcTqqlO6e/e2jjlZ3tTVrFkLKaYlfiYn5NDzRV ACxJbQiFGY1pmQV7GXkexzOIHuDcOvvbAe1WJxh6uzri39S/qqQHN+Ky6OGZngleiqa1 ivS55amf/2UCIIPmAVvPppcJ4rqz2nV2ZGK8Clbmn+bAvvb6y5nWT9uE6CQqQygVceYF dxODVaHGxo3sL0YUrhzCVrrG2YutDKfQd3nDGj+S7x6BSu9etfPlaC9eT3Rmt0ePky25 ZdoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UQMSHOEXy4dd32S1UV0ZhNWB6VKkhN22gnwR9IMusl0=; b=LR5BG9JPJTne1PmkaRo1W2tIpfxKm5miZ+ujbEQfyymQ3BtpDpqhUyQ0SqlnWh+AYE YvgWkvtGot5qxfK7fZ1C98f/VfBAGbLVRzfBwwJIX2QXz4uDUD9UxMQIYhcc7hSmCrBU hVODd6YgGZe4JfNdEytHB0IkwWBJOIg2HXemndEqk3iI3xUh5atFrtN2bOV4enouGFRr Ym/ajyPNPjgPAkYRmus1HgyrdUQd4xGRXHqk+l4iXORmsfYNkhSiX8H3v9PUAc13lIr/ 55zsnS5KIMWUzMVPd+P2igwLYBwvTBV+/gAwLeHHs5Cj2NBDdY+lkFLscY4xEr3hR0l/ VgZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nHmMObR7; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j63-20020a638042000000b00524d372dad6si5549632pgd.732.2023.04.22.12.55.57; Sat, 22 Apr 2023 12:56:11 -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=@linaro.org header.s=google header.b=nHmMObR7; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229508AbjDVTsq (ORCPT + 63 others); Sat, 22 Apr 2023 15:48:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbjDVTsp (ORCPT ); Sat, 22 Apr 2023 15:48:45 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCA321BD5 for ; Sat, 22 Apr 2023 12:48:43 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3010889c6ebso1740731f8f.2 for ; Sat, 22 Apr 2023 12:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682192922; x=1684784922; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UQMSHOEXy4dd32S1UV0ZhNWB6VKkhN22gnwR9IMusl0=; b=nHmMObR7x3FiUkaAPIlaQyocvvgn5cZjZnvZUAlj19vRreiBRr0OrjVYcp34NcAoNu 9cdqrSazGuGiOA7k/p+EN9YMJFHSFkLxHLQH2DwgDlnX4sM6jZa3oJyPytw1Mwy05Nto d5dQO1GKskQ4xoRCKnZaysBDP4R17bnTwmnNFBcoMesrDyLesbWmpJIsImdGvku+Hp3X 2wtM6bY/iq7tieTgsAPDLaFtxkcbUyqtyThPb1eNAPyowHojVgKL9R3TP3oUvIeVy/Cq JS/jFKMN/GdYACkctrawwhLvQrne6MhmV7qhNGmqQ9/+7qwGfUWEj9PSm0JxNLaFWXYH Zgrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682192922; x=1684784922; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UQMSHOEXy4dd32S1UV0ZhNWB6VKkhN22gnwR9IMusl0=; b=SCuRpeBigq7UOFzjLx7kXXKQdEFsiVKe9Fm23AFYInUmZwkLCcWTUhNAOzki6OWjRZ kS6Q0fMUizyq3YLD/i/6XzGvjq6D84pN1fhIoyosX9mils+XtXnJosGptPvEkEEAFYbY 7gjfmTCc1eAYwT5i2q80nTceLdI5Kojuf6n58x5aasK9sl/eFxInR+H6EcZI4HTnNnX7 tr8uEUN2KRJbwi6kljWY91+S2e9rXR6ftMD5SO3R5C41R7PQXjdkIQKwArZGENjYKJ09 DQVsIuvp2Urbstcqv2sOAfgzr0qvR/7+fMZFdpaxzzThsqzFP6fCkEdFm2S7TAuLbRFC mXPA== X-Gm-Message-State: AAQBX9eUC92yDhwtjT4epiIM/MM4RjCopQbs6I3yprtMOumPMiqIHLOy 4sZU2EQcb/Rk1fotLsV4/RtzMQ== X-Received: by 2002:adf:f3cb:0:b0:2f2:7adf:3c67 with SMTP id g11-20020adff3cb000000b002f27adf3c67mr6362132wrp.61.1682192922260; Sat, 22 Apr 2023 12:48:42 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id u6-20020adff886000000b002f28de9f73bsm7159089wrp.55.2023.04.22.12.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 12:48:41 -0700 (PDT) Date: Fri, 21 Apr 2023 15:39:45 +0300 From: Dan Carpenter To: Ping-Ke Shih Cc: "kvalo@kernel.org" , "linux-wireless@vger.kernel.org" , "kernel-janitors@vger.kernel.org" Subject: Re: [PATCH] wifi: rtw89: fix rtw89_read_chip_ver() for RTL8852B and RTL8851B Message-ID: <3b1ed718-ce01-4a98-ae8b-3c042851c3f5@kili.mountain> References: <7475bff70fd50c7e8527e66080e126b4eff440bb.camel@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7475bff70fd50c7e8527e66080e126b4eff440bb.camel@realtek.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Fri, Apr 21, 2023 at 11:48:43AM +0000, Ping-Ke Shih wrote: > On Fri, 2023-04-21 at 13:44 +0300, Dan Carpenter wrote: > > > > The if statement is reversed so it will not record the chip version. > > This was detected using Smatch: > > > > drivers/net/wireless/realtek/rtw89/core.c:3593 rtw89_read_chip_ver() > > error: uninitialized symbol 'val'. > > I use smatch to check our driver regularly, but I can't find this error. > With the latest version v0.5.0-8321-g556064ca, I still can't find it. > Do I need to specify additional arguments? Thanks. > You need the cross function database (which takes like 9 hours to build). ~/smatch/smatch_scripts/build_kernel_data.sh regards, dan carpenter