Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp759655pxb; Tue, 3 Nov 2020 11:42:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTAR/RvPdLb/vNg5CPrVbl64wiZwriVLpTmpmF1vawGOFd2zpt8yqGq1DZZ5BXn7Nu2e4O X-Received: by 2002:aa7:cad6:: with SMTP id l22mr23562029edt.229.1604432539288; Tue, 03 Nov 2020 11:42:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604432539; cv=none; d=google.com; s=arc-20160816; b=0vUggnIZWh1BtFsEymm2tBJ0qa5CKCtzLCmwRdle6ZbdLW3rPRqY//fBu3q+jE6wzu asBihxg8Npp1V72vKab57f2iN5Yc5Ohu2AKNcjq+coCU/mQUn+beA/feCH5USVEbZSJn Mpvl1nNfzAzrYExrQpslwjRJN2tp9OwMrF7AEl4C9ddgCzsA/Sxx6TCHWk3+U3tIEXtu ArwI6IKLn42Qa2kKz/7cnVfBawRdeGpIIoVtCYbWiQdI2fU4V6ZD7c81/wOD1JXA+gU9 y0g9uuWyZz4oyPUQEPJ3JoT0+U1lJsUmrPKpmOckQR4HTFu2lZB7fPcGA38dcfVn+uq/ zvtg== 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:references:in-reply-to :date:cc:to:from:subject:message-id; bh=1vKBJPuXQohDi716Z2huuM3jI4XsW0K9H5RuxRuM45s=; b=fbB4JUhluzw5Zf1thXwT+MO431zF9xw8y+gbeFCYVVMDk6xmPWX6jM64TrxoKad2/c OfNrCwW/nxP37CtFlU+5DnZGQUDo08eXSmZP7de+qGxGdT5JXRyw6tyaydLXXpUc1k4k opRNmBC8wD2lHnXIuIaXElZ//z94st0pg6TsEUc9w78EanmDOrrtga4qma9PDpcTVHup oyMROnSEOtiB6i/AmaM5jzeusV2O32t8VQgjzemrZKFygdbSE2BII/H+g4PBp2D+ZBoB +Wfu4IdiXaO/g3Qhjyi0tW8BnQXg1gHM2W+S2iLIWGDuEk++gLWNfFDNU+zCAcNNsPbm Zdgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si13370163ejy.718.2020.11.03.11.41.54; Tue, 03 Nov 2020 11:42:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729316AbgKCTkc (ORCPT + 99 others); Tue, 3 Nov 2020 14:40:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:48474 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbgKCTkc (ORCPT ); Tue, 3 Nov 2020 14:40:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 79D53AF84; Tue, 3 Nov 2020 19:40:30 +0000 (UTC) Message-ID: Subject: Re: [PATCH v1] PCI: brcmstb: variable is missing proper initialization From: Nicolas Saenz Julienne To: Bjorn Helgaas , Jim Quinlan Cc: linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , Andrew Murray , Jeremy Linton , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Date: Tue, 03 Nov 2020 20:40:28 +0100 In-Reply-To: <20201103193816.GA258457@bjorn-Precision-5520> References: <20201103193816.GA258457@bjorn-Precision-5520> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-nvKhNR6RmsfIw8RNZUdB" User-Agent: Evolution 3.36.5 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-nvKhNR6RmsfIw8RNZUdB Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2020-11-03 at 13:38 -0600, Bjorn Helgaas wrote: > On Mon, Nov 02, 2020 at 03:57:12PM -0500, Jim Quinlan wrote: > > The variable 'tmp' is used multiple times in the brcm_pcie_setup() > > function. One such usage did not initialize 'tmp' to the current value= of > > the target register. By luck the mistake does not currently affect > > behavior; regardless 'tmp' is now initialized properly. >=20 > This is so trivial that there's probably no reason to post this again, > but if you post a v2 for some reason, please update the subject to > match the convention ("PCI: brcmstb: Verb ..."), e.g., >=20 > PCI: brcmstb: Initialize "tmp" before use >=20 > The commit log does not say what the patch does, leaving it to the > reader to infer it. >=20 > Lorenzo will likely fix this up when he applies it. >=20 > Incidental curiosity: where should I look to see what > u32p_replace_bits() does? "git grep u32p_replace_bits" shows several > calls, but no definitions. It's a bunch if defines in 'include/linux/bitfield.h' Regards, Nicolas --=-nvKhNR6RmsfIw8RNZUdB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl+hsi0ACgkQlfZmHno8 x/6Jwwf/fz2BWj+g88awStcBOFOc9sXJRLSGq0DxmNG6MtFYwxGOSDOTAh0VqvW6 la8BdNx+7q8i4uVjQMvRa22YOi78htWFb4nareJjldrEhn1yrxHZ7VLwEfDJFUiB ei5f3YDbDR0D2KH+RMv3z9wPJmGIo1GSq1wZj+nthMrtIQVZ4PXlo2fZis16I1xd QC8GsduMkqcJm3EHJSte4SFJQu5CLBX6UDKlvE6GrmWbb+nqYxESrHSnGgVJTt11 7qbCs7pcNEt4pIWmca3w5iITCC4+v7GE2oRAMZZPw6jl5dgBWGaitJG9/Ij+pIoh Y4aRLvUjEfs5+tX3CkAH8sa7UoMIug== =CS09 -----END PGP SIGNATURE----- --=-nvKhNR6RmsfIw8RNZUdB--