From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 1663E36AE6 for ; Sun, 17 Dec 2023 12:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BmI4w+zh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702815731; x=1734351731; h=date:from:to:cc:subject:message-id:mime-version; bh=0xCZ5YsjxEbabTTFjOtDr2jvq4X+DYjwf1tmSoZG0U8=; b=BmI4w+zhYgMdGPS12jhTAnC40lprdqV06W1VkebMAm1JSNzDJaQkvh2k 6T/PDm+IyK7FL2uTsh2Q13sl5eDF4w9O7+FcMRAdltqjyxzfP3Hvvgj5N eUGmascXqHIhw6MWqIfsuDvkyQCoIKbwhL4pWV6Tv5CnJxW+WwECyMaee 6lZqg+N/sLU7rOiKI1NPyxKXs6CUSLWiWZFNBZNomDsfPnlE7nCtztH1I o2akH9r7DmUbTLVYrfqqlIc2MsW3BRBzH9evgaPpMIxltFIq0hWJfbneK ET0wrA+Kr307o2S5NWCMYBk13Gz1D3JQqgkksLkVoQRaxprgj4G2QfyVL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10926"; a="2239070" X-IronPort-AV: E=Sophos;i="6.04,283,1695711600"; d="scan'208";a="2239070" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2023 04:22:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10926"; a="768539609" X-IronPort-AV: E=Sophos;i="6.04,283,1695711600"; d="scan'208";a="768539609" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 17 Dec 2023 04:22:08 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rEq9m-00031m-1M; Sun, 17 Dec 2023 12:22:06 +0000 Date: Sun, 17 Dec 2023 20:21:49 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com, Dan Carpenter Subject: Re: [PATCH v2 3/6] irqchip: Introduce RTD1319 support using the Realtek common interrupt controller driver Message-ID: <202312172011.8iKGuYB9-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev In-Reply-To: <20231117162709.1096585-4-james.tai@realtek.com> References: <20231117162709.1096585-4-james.tai@realtek.com> TO: James Tai TO: Thomas Gleixner TO: Marc Zyngier TO: Rob Herring TO: Krzysztof Kozlowski TO: Conor Dooley TO: James Tai CC: linux-kernel@vger.kernel.org CC: devicetree@vger.kernel.org Hi James, kernel test robot noticed the following build warnings: [auto build test WARNING on tip/irq/core] [also build test WARNING on robh/for-next linus/master v6.7-rc5 next-20231215] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/James-Tai/dt-bindings-interrupt-controller-Add-support-for-Realtek-DHC-SoCs/20231118-003036 base: tip/irq/core patch link: https://lore.kernel.org/r/20231117162709.1096585-4-james.tai%40realtek.com patch subject: [PATCH v2 3/6] irqchip: Introduce RTD1319 support using the Realtek common interrupt controller driver :::::: branch date: 4 weeks ago :::::: commit date: 4 weeks ago config: nios2-randconfig-r081-20231120 (https://download.01.org/0day-ci/archive/20231217/202312172011.8iKGuYB9-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 13.2.0 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/202312172011.8iKGuYB9-lkp@intel.com/ smatch warnings: drivers/irqchip/irq-realtek-intc-common.c:179 realtek_intc_probe() warn: ignoring unreachable code. drivers/irqchip/irq-realtek-intc-common.c:187 realtek_intc_probe() warn: 'data->base' from of_iomap() not released on lines: 176,182. vim +179 drivers/irqchip/irq-realtek-intc-common.c 40e5ff4eaef72b James Tai 2023-11-18 154 40e5ff4eaef72b James Tai 2023-11-18 155 int realtek_intc_probe(struct platform_device *pdev, const struct realtek_intc_info *info) 40e5ff4eaef72b James Tai 2023-11-18 156 { 40e5ff4eaef72b James Tai 2023-11-18 157 struct realtek_intc_data *data; 40e5ff4eaef72b James Tai 2023-11-18 158 struct device *dev = &pdev->dev; 40e5ff4eaef72b James Tai 2023-11-18 159 struct device_node *node = dev->of_node; 40e5ff4eaef72b James Tai 2023-11-18 160 int ret, i; 40e5ff4eaef72b James Tai 2023-11-18 161 40e5ff4eaef72b James Tai 2023-11-18 162 data = devm_kzalloc(dev, struct_size(data, subset_data, info->cfg_num), GFP_KERNEL); 40e5ff4eaef72b James Tai 2023-11-18 163 if (!data) 40e5ff4eaef72b James Tai 2023-11-18 164 return -ENOMEM; 40e5ff4eaef72b James Tai 2023-11-18 165 40e5ff4eaef72b James Tai 2023-11-18 166 data->base = of_iomap(node, 0); 40e5ff4eaef72b James Tai 2023-11-18 167 if (!data->base) 40e5ff4eaef72b James Tai 2023-11-18 168 return -ENOMEM; 40e5ff4eaef72b James Tai 2023-11-18 169 40e5ff4eaef72b James Tai 2023-11-18 170 data->info = info; 40e5ff4eaef72b James Tai 2023-11-18 171 40e5ff4eaef72b James Tai 2023-11-18 172 raw_spin_lock_init(&data->lock); 40e5ff4eaef72b James Tai 2023-11-18 173 40e5ff4eaef72b James Tai 2023-11-18 174 data->domain = irq_domain_add_linear(node, 32, &realtek_intc_domain_ops, data); 40e5ff4eaef72b James Tai 2023-11-18 175 if (!data->domain) 40e5ff4eaef72b James Tai 2023-11-18 176 return -ENOMEM; 40e5ff4eaef72b James Tai 2023-11-18 177 40e5ff4eaef72b James Tai 2023-11-18 178 data->subset_data_num = info->cfg_num; 40e5ff4eaef72b James Tai 2023-11-18 @179 for (i = 0; i < info->cfg_num; i++) { 40e5ff4eaef72b James Tai 2023-11-18 180 ret = realtek_intc_subset(node, data, i); 40e5ff4eaef72b James Tai 2023-11-18 181 WARN(ret, "failed to init subset %d: %d", i, ret); 40e5ff4eaef72b James Tai 2023-11-18 182 return -ENOMEM; 40e5ff4eaef72b James Tai 2023-11-18 183 } 40e5ff4eaef72b James Tai 2023-11-18 184 40e5ff4eaef72b James Tai 2023-11-18 185 platform_set_drvdata(pdev, data); 40e5ff4eaef72b James Tai 2023-11-18 186 40e5ff4eaef72b James Tai 2023-11-18 @187 return 0; 40e5ff4eaef72b James Tai 2023-11-18 188 } 40e5ff4eaef72b James Tai 2023-11-18 189 EXPORT_SYMBOL(realtek_intc_probe); 40e5ff4eaef72b James Tai 2023-11-18 190 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki