From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 BF55F1EB1AA; Sat, 7 Feb 2026 01:47:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770428851; cv=none; b=WbG/aHft0WmzP8SKPybZOfNvYaeJuYdDchkkSUQOqlGQ8oF+WKdzSfZb5AM+EKkIM779P0ktOyaKWI6gPQAT/fJv9bQKOW8TXDBsjPO/qAsmYYlRZnErLdW0/ul/ReMdRH1+lwxzjvhLV+lefryFPCHeH6daaGvvm2Ylc74LhoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770428851; c=relaxed/simple; bh=JhehRN6NuQP7bpV2yNg0BgzdHgdYsrMp5h3s/bhNviY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=He6YXkEEIf/rvfP0TV4WmH2yEBGYV6DztW4KruMCTY3YP0xOkaQ9zX4BOjxCj1t3WiZ1SANWX1zDKDsw4YFjSlrZoASElIcJcjMsCbR1zSUGMIZaKH9RhDLNSnrg7bjwVrAJkGmkA3LsqoEt/wzqu3209V5rUjRCG10XI2Ta64Q= 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=AhCtg6UY; arc=none smtp.client-ip=198.175.65.18 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="AhCtg6UY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770428851; x=1801964851; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JhehRN6NuQP7bpV2yNg0BgzdHgdYsrMp5h3s/bhNviY=; b=AhCtg6UYRi1ZBtH7C9jGoheesxsYFNczAD6UskLR0NmZsNIwotOhYdYa LLmRWhnjjuCZjjygQFQkZMYLusldlzGvNm+FaftOA9SOeNSTxNqXbRm6s 6H6EUDjLB916E1Y2bdTTexI4prWcAzpzCGvMmWa8/ZuEFJ22l58xTYbqZ zjGYbokg8ahsfkiV8iHMYzNeZ0vqfWhotGeXmOnqfkQ7AuAwkH5dt49sN LVgGabGH0jba+l3Tw31u0aGCS3NJGsfpOLlIG/ckomEYJk4+/I9Mzi5u3 sIaH3VqWdD5juOzBZZMWYtTJ3J2xFSZvB6BE1Iry1MBqp0DCNlqNP5x62 g==; X-CSE-ConnectionGUID: Umn84ug5TRmZSjd63Wxqkg== X-CSE-MsgGUID: oWFH7WLyQPaH7ZKHyw3/MA== X-IronPort-AV: E=McAfee;i="6800,10657,11693"; a="71676311" X-IronPort-AV: E=Sophos;i="6.21,277,1763452800"; d="scan'208";a="71676311" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2026 17:47:30 -0800 X-CSE-ConnectionGUID: kMLUEI3jQ4OB7yC5pWeUhA== X-CSE-MsgGUID: Fj7PwwsyR3eQ4jqVQNlkrw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,277,1763452800"; d="scan'208";a="210872881" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 06 Feb 2026 17:47:26 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1voXPv-00000000lK8-33QX; Sat, 07 Feb 2026 01:47:23 +0000 Date: Sat, 7 Feb 2026 09:46:28 +0800 From: kernel test robot To: Jie Zhang , netdev@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, jzhang918@gmail.com, jie.zhang@analog.com, horms@kernel.org, Jacob Keller , Andrew Lunn , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , "Russell King (Oracle)" , Maxime Chevallier , Vladimir Oltean , Jose Abreu , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2] net: stmmac: fix oops when split header is enabled Message-ID: <202602070944.47xACYer-lkp@intel.com> References: <20260206195643.11333-1-jie.zhang@analog.com> Precedence: bulk X-Mailing-List: netdev@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: <20260206195643.11333-1-jie.zhang@analog.com> Hi Jie, kernel test robot noticed the following build errors: [auto build test ERROR on net/main] url: https://github.com/intel-lab-lkp/linux/commits/Jie-Zhang/net-stmmac-fix-oops-when-split-header-is-enabled/20260207-035916 base: net/main patch link: https://lore.kernel.org/r/20260206195643.11333-1-jie.zhang%40analog.com patch subject: [PATCH net v2] net: stmmac: fix oops when split header is enabled config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260207/202602070944.47xACYer-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260207/202602070944.47xACYer-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/202602070944.47xACYer-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:5041:19: error: no member named 'has_gmac4' in 'struct plat_stmmacenet_data' 5041 | if (!priv->plat->has_gmac4 && (status & rx_not_ls)) | ~~~~~~~~~~ ^ 1 error generated. vim +5041 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 5014 5015 static unsigned int stmmac_rx_buf2_len(struct stmmac_priv *priv, 5016 struct dma_desc *p, 5017 int status, unsigned int len) 5018 { 5019 int coe = priv->hw->rx_csum; 5020 unsigned int plen = 0; 5021 5022 /* Not split header, buffer is not available */ 5023 if (!priv->sph_active) 5024 return 0; 5025 5026 /* For GMAC4, when split header is enabled, in some rare cases, the 5027 * hardware does not fill buf2 of the first descriptor with payload. 5028 * Thus we cannot assume buf2 is always fully filled if it is not 5029 * the last descriptor. Otherwise, the length of buf2 of the second 5030 * descriptor will be calculated wrong and cause an oops. 5031 * 5032 * If this is the last descriptor, 'plen' is the length of the 5033 * received packet that was transferred to system memory. 5034 * Otherwise, it is the accumulated number of bytes that have been 5035 * transferred for the current packet. 5036 * 5037 * Thus 'plen - len' always gives the correct length of buf2. 5038 */ 5039 5040 /* Not GMAC4 and not last descriptor */ > 5041 if (!priv->plat->has_gmac4 && (status & rx_not_ls)) 5042 return priv->dma_conf.dma_buf_sz; 5043 5044 /* GMAC4 or last descriptor */ 5045 plen = stmmac_get_rx_frame_len(priv, p, coe); 5046 5047 return plen - len; 5048 } 5049 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki