From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 CFDE03CC9F0 for ; Tue, 17 Mar 2026 13:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773755642; cv=none; b=KxM3Pv5JjT/elWDOLrHsPtEH5ox7MZgf1TwXe4+TppQws0mlPZxdSFjuHrG+BaybGIgDvyGBwHc9kNTgYxG/yw9KkeQ0WzVQa6Yk5PlieodziYqLj55M9COArsr3UMGC3r/Eq26bId3RwHYmGPiOua6Lo3CrXdOrU2iCx7WPQKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773755642; c=relaxed/simple; bh=o8et0AamQjZZ4EqWF5uiXKf/AHwNjnUUtBEi/BgsLs8=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wd7/zXcoTdv2Nz7sbRwE6fK4ztonshTAAeIb4Sg5OhFOlSvj4VUgA0eNXPvMCg3PsdedB5fIvTQ0Nvs4aw4VIXM8DVjGMVwlM5DJLVWqJffimnk734WaKe37J87Zoj2W8TCpAIx6LOlxAro0PZlb7zxkJpmTNSnRj/za6V26gaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=iHRZcZzT; arc=none smtp.client-ip=198.175.65.16 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="iHRZcZzT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773755639; x=1805291639; h=date:from:to:subject:message-id:references:mime-version: in-reply-to; bh=o8et0AamQjZZ4EqWF5uiXKf/AHwNjnUUtBEi/BgsLs8=; b=iHRZcZzT+VUefKqe48h8T9uKdelnYgjOT/pgvyxeizR/m+Mn9j5oGQCr 2tWTqO8LRAFw0EADzMaP0t2cBcSxNsbBAU1biDitersWRDG1lUoF59ib8 eSWP4mLarKGss2O92D7cntIq9ncjKCIQXShtVnzn+7GhtO2/G5Yp9OI5M beOJjBHpniLZk46og/toFLh4bJ90X3pdQODgChiGJN57xr2rqnvNvGX2+ vhn81q3oZO7EFznIOsY9ngKxnZNx6K0EdUALw/Gw7fzWvIuL3ox8l+Bo1 qZ63Mmez6MNAIZQxjO94kMHoAPLxOIhedDdrqV0iq1pCU26a3AbI10Vt5 Q==; X-CSE-ConnectionGUID: hUu670pzSPO/0fuHe3CDcQ== X-CSE-MsgGUID: upHvZFXzRVmnOd/VQas8PQ== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="74970189" X-IronPort-AV: E=Sophos;i="6.23,124,1770624000"; d="scan'208";a="74970189" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 06:53:58 -0700 X-CSE-ConnectionGUID: dQp5eaAFS/OF0VCWg5kczQ== X-CSE-MsgGUID: QIgxzpUZTCiSUay6tUI2zQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,124,1770624000"; d="scan'208";a="226966886" Received: from igk-lkp-server01.igk.intel.com (HELO 9958d990ccf2) ([10.211.93.152]) by fmviesa005.fm.intel.com with ESMTP; 17 Mar 2026 06:53:57 -0700 Received: from kbuild by 9958d990ccf2 with local (Exim 4.98.2) (envelope-from ) id 1w2Urq-000000004RF-3fmg; Tue, 17 Mar 2026 13:53:54 +0000 Date: Tue, 17 Mar 2026 14:53:03 +0100 From: kernel test robot To: Rosen Penev , linux-kernel@vger.kernel.org Subject: Re: [PATCH] hsi: hsi_core: use kzalloc_flex Message-ID: <202603171431.ThUSplSw-lkp@intel.com> References: <20260316004139.267912-1-rosenp@gmail.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: <20260316004139.267912-1-rosenp@gmail.com> Hi Rosen, kernel test robot noticed the following build warnings: [auto build test WARNING on sre-hsi/for-next] [also build test WARNING on kees/for-next/kspp next-20260316] [cannot apply to kees/for-next/pstore linus/master v6.16-rc1] [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/Rosen-Penev/hsi-hsi_core-use-kzalloc_flex/20260316-091623 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi.git for-next patch link: https://lore.kernel.org/r/20260316004139.267912-1-rosenp%40gmail.com patch subject: [PATCH] hsi: hsi_core: use kzalloc_flex config: i386-randconfig-2006-20250804 (https://download.01.org/0day-ci/archive/20260317/202603171431.ThUSplSw-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260317/202603171431.ThUSplSw-lkp@intel.com/reproduce) 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202603171431.ThUSplSw-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/hsi/hsi_core.c: In function 'hsi_put_controller': >> drivers/hsi/hsi_core.c:447:21: warning: the comparison will always evaluate as 'true' for the address of 'port' will never be NULL [-Waddress] 447 | if (hsi->port && hsi->port[i]) | ^~~ In file included from drivers/hsi/hsi_core.c:9: include/linux/hsi/hsi.h:274:34: note: 'port' declared here 274 | struct hsi_port *port[] __counted_by(num_ports); | ^~~~ vim +447 drivers/hsi/hsi_core.c a056ab8c7a00a0f drivers/hsi/hsi.c Carlos Chinea 2010-04-16 429 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 430 /** 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 431 * hsi_put_controller - Free an HSI controller 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 432 * 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 433 * @hsi: Pointer to the HSI controller to freed 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 434 * 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 435 * HSI controller drivers should only use this function if they need 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 436 * to free their allocated hsi_controller structures before a successful 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 437 * call to hsi_register_controller. Other use is not allowed. 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 438 */ 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 439 void hsi_put_controller(struct hsi_controller *hsi) 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 440 { 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 441 unsigned int i; 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 442 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 443 if (!hsi) 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 444 return; 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 445 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 446 for (i = 0; i < hsi->num_ports; i++) 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 @447 if (hsi->port && hsi->port[i]) 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 448 put_device(&hsi->port[i]->device); 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 449 put_device(&hsi->device); 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 450 } 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 451 EXPORT_SYMBOL_GPL(hsi_put_controller); 5a218ceba7b64f5 drivers/hsi/hsi.c Carlos Chinea 2012-04-04 452 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki