From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56547261B9C for ; Tue, 14 Oct 2025 07:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760427240; cv=none; b=NX45b5S/j7ZkealZCkeJ8yjiSV3+HK9zWrEbkE1yraS6Ksi2upbGib/LSg1Xqn5nuMD6KZ24y9O4oOBk2lqqBTRjjcGsZVSE4YG/SjeULaY0o/npsZwKUN7OnOvW8cUM9Y/20RFHyEjLMXqF1uCaY7wx+f2drz9rGZX/X/HstEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760427240; c=relaxed/simple; bh=rJZBVvFcCZfoZL/WIRUcWWYvpISm45B4Rwe3rWq54PY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=OcmhAjYQwEPg0lvcee2tPwYIij3MDRtgqTKHiVRplU1mo6QTW1FqYI4Tn/2tyPXa71QSahvEtJhJ6wzUlzoFPq7E1qulJcVvZRbDHI3H2A+d8+sKLIxatJhEbTuz2U5cMLHK6KxDBmZHwt4ZHDJ/QbyUl0gQh1TUzQZ9G/EXZBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jtIq29hI; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jtIq29hI" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3f0ae439b56so2932222f8f.3 for ; Tue, 14 Oct 2025 00:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760427235; x=1761032035; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BwG/OchAZjwNRXsTLu0s9JIZNQmUXDtfcvX6l0dZWYY=; b=jtIq29hIUJ3zZS24dAUTiBR7g0kefEjeW4tk79WyiSgMsnJD8bT2IZEgic2CC3IN/5 GjqUvPZwDFV9wpLEcsU59kzrhD/+1MV/AheU30IK0YPN1lbQMFHzq0lURGk0d3rq8lMo spxzB2BBPqjeV36gK+VrRgiy0ovvDz/CsfHZRu6vvSIt/5+jwL90u7MqVFfUU+qIHKy1 cp4OjA6iTN/WB1OupyDUQwn5CxAR66Gz8EZkyZT+jrpxNne09uJI74Y3qQbRy/1EUaHE DnyQE183t/YWpl65YiezcYRHe+O1dFD10WfLjkAOwZPl2HvenKQXqIaQW2SxQyh8FtI3 YWqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760427235; x=1761032035; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BwG/OchAZjwNRXsTLu0s9JIZNQmUXDtfcvX6l0dZWYY=; b=lT4uZw9EzdTk4/f7XUMfeO/ml9PLUlN1pcxBmMIvagFChDCQl54ePqiGF88xer8B4E Vhp40F2XdSojwts0zswt3MopIusLuZsEjbvR/CLKvKZTj7rOIiLhetGlMFBkPm4WapQl SLKp9PWeu7LN+urY7j9frJEEho3cK28IsYzpHArK4t7vz/ESPGyXk1DEPe246eUIT9S7 eRxN0ehzaIAXLzS3yK68cfcYg8UuqxpcWNqI8yT90+MK/h1L+DItti7WNCRk9NhCXLb2 V7sdphO9zHSwxfs1iilbXNySqnqhb5cySTNAxI9io2jFQOxIZQCi0MZ1mpFNX8RllwQ3 AiRw== X-Forwarded-Encrypted: i=1; AJvYcCUmv0xQkAcaBN2nCzCkT6vh3dDS3BBY2S0DSaMV+7ul0ZsNib5XglKe9jt/T7RIqAkZsH9TE6RoFD+6Wy4=@vger.kernel.org X-Gm-Message-State: AOJu0Ywh2U5lkNpqvNmaI2nMBLMopXQOxpoIzhKUsntu/DiwJBtJrC2o qS2u5ReDYbIBALdIhJEJIzXeKOqpkEkTa4B+OLdg5GqKpEDISMh/CsVP6EbSaNwikU0= X-Gm-Gg: ASbGncsUnAJmVWKNerSQnVPeUuiPXBa4TB4jMNuGsJOgCcudkAjC3kE3T0whEyWbS3t mJ4CX6DtG9TwfkDLo1Pmd+/aM2aoPaK+TupdDpGim+ip2Xlhrapn2m9Yy/uPpGELCjKEF6I4eZW I6FlpyU6F0ihEygfb84qp3lF4Q8Kqf5jiswN0WYZCdoZZVqG0iNmrV63zZF3zkCWNUOPzdcdHSX hvMgXhjouqKxIDkjR/GBD9oaLVtXa/VmR06jjda0TUqQwXBhBi8FAbnjIVcsIhzz32dq7IgS/dg 7KGBq5k/XkyzUMIgrgXphttU1ZYVuHPeYxOAvH2cnHZUxJEXWw68MZRgp1yG426cqN/BM4IpHMX Zk0onfnJ8qSaicR0/In8S3wULMxsDq21/ex9bfzEKquCiZGwS0Zs= X-Google-Smtp-Source: AGHT+IE0SibgFOUsTOWb11Xe06KS5AooYnMfuV3qZwF21RGoTYuiMhvM5xxFKgxQQAvf0jDG3bRS2A== X-Received: by 2002:a05:6000:1ac8:b0:3f7:b7ac:f3d4 with SMTP id ffacd0b85a97d-42666abbbc1mr17933769f8f.5.1760427235501; Tue, 14 Oct 2025 00:33:55 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-426ce5e8a06sm22182799f8f.55.2025.10.14.00.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 00:33:55 -0700 (PDT) Date: Tue, 14 Oct 2025 10:33:51 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Randolph Lin , linux-kernel@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, jingoohan1@gmail.com, mani@kernel.org, lpieralisi@kernel.org, kwilczynski@kernel.org, robh@kernel.org, bhelgaas@google.com, krzk+dt@kernel.org, conor+dt@kernel.org, alex@ghiti.fr, aou@eecs.berkeley.edu, palmer@dabbelt.com, paul.walmsley@sifive.com, ben717@andestech.com, inochiama@gmail.com, thippeswamy.havalige@amd.com, namcao@linutronix.de, shradha.t@samsung.com, pjw@kernel.org, randolph.sklin@gmail.com, tim609@andestech.com, Randolph Lin Subject: Re: [PATCH v6 4/5] PCI: andes: Add Andes QiLai SoC PCIe host driver support Message-ID: <202510092111.fZmvx6jO-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251003023527.3284787-5-randolph@andestech.com> Hi Randolph, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Randolph-Lin/PCI-dwc-Allow-adjusting-the-number-of-ob-ib-windows-in-glue-driver/20251003-104100 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20251003023527.3284787-5-randolph%40andestech.com patch subject: [PATCH v6 4/5] PCI: andes: Add Andes QiLai SoC PCIe host driver support config: powerpc-randconfig-r071-20251009 (https://download.01.org/0day-ci/archive/20251009/202510092111.fZmvx6jO-lkp@intel.com/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 39f292ffa13d7ca0d1edff27ac8fd55024bb4d19) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202510092111.fZmvx6jO-lkp@intel.com/ smatch warnings: drivers/pci/controller/dwc/pcie-andes-qilai.c:157 qilai_pcie_host_fix_ob_iatu_count() error: uninitialized symbol 'ranges_32bits'. vim +/ranges_32bits +157 drivers/pci/controller/dwc/pcie-andes-qilai.c 816cad1ac60166 Randolph Lin 2025-10-03 133 static int qilai_pcie_host_fix_ob_iatu_count(struct dw_pcie_rp *pp) 816cad1ac60166 Randolph Lin 2025-10-03 134 { 816cad1ac60166 Randolph Lin 2025-10-03 135 struct dw_pcie *pci = to_dw_pcie_from_pp(pp); 816cad1ac60166 Randolph Lin 2025-10-03 136 struct device *dev = pci->dev; 816cad1ac60166 Randolph Lin 2025-10-03 137 struct resource_entry *entry; 816cad1ac60166 Randolph Lin 2025-10-03 138 /* Reserved 1 ob iATU for config space */ 816cad1ac60166 Randolph Lin 2025-10-03 139 int count = 1; 816cad1ac60166 Randolph Lin 2025-10-03 140 int ranges_32bits; This should be bool and initialized to false. 816cad1ac60166 Randolph Lin 2025-10-03 141 u64 pci_addr; 816cad1ac60166 Randolph Lin 2025-10-03 142 u64 size; 816cad1ac60166 Randolph Lin 2025-10-03 143 816cad1ac60166 Randolph Lin 2025-10-03 144 resource_list_for_each_entry(entry, &pp->bridge->windows) { 816cad1ac60166 Randolph Lin 2025-10-03 145 if (resource_type(entry->res) != IORESOURCE_MEM) 816cad1ac60166 Randolph Lin 2025-10-03 146 continue; 816cad1ac60166 Randolph Lin 2025-10-03 147 816cad1ac60166 Randolph Lin 2025-10-03 148 size = resource_size(entry->res); 816cad1ac60166 Randolph Lin 2025-10-03 149 if (size < SZ_4G) 816cad1ac60166 Randolph Lin 2025-10-03 150 count++; 816cad1ac60166 Randolph Lin 2025-10-03 151 816cad1ac60166 Randolph Lin 2025-10-03 152 pci_addr = entry->res->start - entry->offset; 816cad1ac60166 Randolph Lin 2025-10-03 153 if (pci_addr < SZ_4G) 816cad1ac60166 Randolph Lin 2025-10-03 154 ranges_32bits = true; 816cad1ac60166 Randolph Lin 2025-10-03 155 } 816cad1ac60166 Randolph Lin 2025-10-03 156 816cad1ac60166 Randolph Lin 2025-10-03 @157 if (!ranges_32bits) { 816cad1ac60166 Randolph Lin 2025-10-03 158 dev_err(dev, "Bridge window must contain 32-bits address\n"); 816cad1ac60166 Randolph Lin 2025-10-03 159 return -EINVAL; 816cad1ac60166 Randolph Lin 2025-10-03 160 } 816cad1ac60166 Randolph Lin 2025-10-03 161 816cad1ac60166 Randolph Lin 2025-10-03 162 pci->num_ob_windows = count; 816cad1ac60166 Randolph Lin 2025-10-03 163 816cad1ac60166 Randolph Lin 2025-10-03 164 return 0; 816cad1ac60166 Randolph Lin 2025-10-03 165 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki