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 A1960257848 for ; Tue, 13 Jan 2026 04:05:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768277137; cv=none; b=OiYsUxMeKr+kVWrtQlst7JeDA0QVu8O35eXHcmFANvsKtScNCie1ifLBB/ecAWM0jnerHyzSwPkSx/8S7VQZVYdjn1/bNdaRBHByh9gItya1D8Q9JD/pTZ02io//YPKHjhjyYYbJ22lfL9AFGBlh5hOaIR3NpoEBMYr/CmvWw80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768277137; c=relaxed/simple; bh=JAvD42DEp/J+hq/XcUocuUDb7ccfeSPR/tkE5oQzvwQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sS0fl6VFQvryb21fNEhyu25Xwc1Y18T6MHxzjqlCaMZl+HPW5AA5LRv1IJaCBbFr6e2ao0QlcEaC0DRHvQ9aImzCIBr6jfisdjJOFzO11MACl0hzyQRwyah4ibWA8gR0BIH4BYi+3NQcwk0CcQP0XRBxVRIRoXOM9FHDXTmbC5I= 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=LM6FHDHJ; arc=none smtp.client-ip=192.198.163.11 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="LM6FHDHJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1768277136; x=1799813136; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JAvD42DEp/J+hq/XcUocuUDb7ccfeSPR/tkE5oQzvwQ=; b=LM6FHDHJIxfU+p5ji7ayHm+Xk7Ivwm9UeR5PlxxNGOXgmK9XnQ7jbrfc bROspY+OKy68R7xdIIDGajyBw0SO1lpvOggbkvBQeyNo+m7fBp721HAlv DfCAMrHIDuuQlaQwCTbv9jLwy5tkz76KgktSylx2kmEYBLU5YOvN2Rgnu 93lRvXTaR9gfjlmGgV37PirfzVOXTP+lF/WUbPW5nZol32XhQQG++3z// k7MyoxJ1msyj5OWe451/sxky5WTeFwhhyI2UQJlzuxAYvYEqgcUwdnoCg SxwW4qw11m7f9+1gs3CQ6rRsT05NdtKA3GjCt6F9ne4bC2BrQHr6J4VwS w==; X-CSE-ConnectionGUID: QNb3odfkTQ6kbSsj5tyx+Q== X-CSE-MsgGUID: a4JcGPRRT6q15KMZtcPcog== X-IronPort-AV: E=McAfee;i="6800,10657,11669"; a="80201921" X-IronPort-AV: E=Sophos;i="6.21,222,1763452800"; d="scan'208";a="80201921" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2026 20:05:35 -0800 X-CSE-ConnectionGUID: SBoXRcZtT8CkM66bXqIZeg== X-CSE-MsgGUID: wiZNVPtrQN6+mRcLYjnVOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,222,1763452800"; d="scan'208";a="204173413" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 12 Jan 2026 20:05:34 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vfVet-00000000EC4-2dKX; Tue, 13 Jan 2026 04:05:31 +0000 Date: Tue, 13 Jan 2026 12:04:55 +0800 From: kernel test robot To: Karthikey Kadati , gregkh@linuxfoundation.org Cc: oe-kbuild-all@lists.linux.dev, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Karthikey Kadati Subject: Re: [PATCH v2] staging: octeon: Remove port status typedefs Message-ID: <202601131108.A90iCRFi-lkp@intel.com> References: <20260112103843.22925-1-karthikey3608@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: <20260112103843.22925-1-karthikey3608@gmail.com> Hi Karthikey, kernel test robot noticed the following build warnings: [auto build test WARNING on staging/staging-testing] url: https://github.com/intel-lab-lkp/linux/commits/Karthikey-Kadati/staging-octeon-Remove-port-status-typedefs/20260112-184331 base: staging/staging-testing patch link: https://lore.kernel.org/r/20260112103843.22925-1-karthikey3608%40gmail.com patch subject: [PATCH v2] staging: octeon: Remove port status typedefs config: mips-cavium_octeon_defconfig (https://download.01.org/0day-ci/archive/20260113/202601131108.A90iCRFi-lkp@intel.com/config) compiler: mips64-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260113/202601131108.A90iCRFi-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/202601131108.A90iCRFi-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/staging/octeon/ethernet.c: In function 'cvm_oct_common_get_stats': drivers/staging/octeon/ethernet.c:204:37: error: storage size of 'rx_status' isn't known 204 | struct cvmx_pip_port_status rx_status; | ^~~~~~~~~ drivers/staging/octeon/ethernet.c:205:37: error: storage size of 'tx_status' isn't known 205 | struct cvmx_pko_port_status tx_status; | ^~~~~~~~~ >> drivers/staging/octeon/ethernet.c:205:37: warning: unused variable 'tx_status' [-Wunused-variable] >> drivers/staging/octeon/ethernet.c:204:37: warning: unused variable 'rx_status' [-Wunused-variable] 204 | struct cvmx_pip_port_status rx_status; | ^~~~~~~~~ vim +/tx_status +205 drivers/staging/octeon/ethernet.c 195 196 /** 197 * cvm_oct_common_get_stats - get the low level ethernet statistics 198 * @dev: Device to get the statistics from 199 * 200 * Returns Pointer to the statistics 201 */ 202 static struct net_device_stats *cvm_oct_common_get_stats(struct net_device *dev) 203 { > 204 struct cvmx_pip_port_status rx_status; > 205 struct cvmx_pko_port_status tx_status; 206 struct octeon_ethernet *priv = netdev_priv(dev); 207 208 if (priv->port < CVMX_PIP_NUM_INPUT_PORTS) { 209 if (octeon_is_simulation()) { 210 /* The simulator doesn't support statistics */ 211 memset(&rx_status, 0, sizeof(rx_status)); 212 memset(&tx_status, 0, sizeof(tx_status)); 213 } else { 214 cvmx_pip_get_port_status(priv->port, 1, &rx_status); 215 cvmx_pko_get_port_status(priv->port, 1, &tx_status); 216 } 217 218 dev->stats.rx_packets += rx_status.inb_packets; 219 dev->stats.tx_packets += tx_status.packets; 220 dev->stats.rx_bytes += rx_status.inb_octets; 221 dev->stats.tx_bytes += tx_status.octets; 222 dev->stats.multicast += rx_status.multicast_packets; 223 dev->stats.rx_crc_errors += rx_status.inb_errors; 224 dev->stats.rx_frame_errors += rx_status.fcs_align_err_packets; 225 dev->stats.rx_dropped += rx_status.dropped_packets; 226 } 227 228 return &dev->stats; 229 } 230 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki