🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24239

Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP

#24239
From: kernel test robot
Date: Sun, 29 Nov 2026 21:18
164 lines
15332 bytes
Hi Birger,

kernel test robot noticed the following build warnings:

[auto build test WARNING on eb6d6c80d35449c27471b1874f13066c09a8964d]

url:    https://github.com/intel-lab-lkp/linux/commits/Birger-Koblitz/net-usb-ax88179-Add-PTP-data-structures-and-definitions/20261129-102950
base:   eb6d6c80d35449c27471b1874f13066c09a8964d
patch link:    https://lore.kernel.org/r/20261129-ptp-v1-3-8148c402beaf%40birger-koblitz.de
patch subject: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20261130/20261130050726.LLJ9oe3l-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 04597ff5c4eda9d66da39a536aa26a7bab2fb2dd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130050726.LLJ9oe3l-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261130050726.LLJ9oe3l-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/usb/ax88179a_devices.c:1182:18: warning: shift count >= width of type [-Wshift-count-overflow]
    1182 |                 if (pkt_desc & AX179A_RX_PD_PTP) {
         |                                ^~~~~~~~~~~~~~~~
   drivers/net/usb/ax88179_lib.h:272:27: note: expanded from macro 'AX179A_RX_PD_PTP'
     272 | #define AX179A_RX_PD_PTP                BIT(56)
         |                                         ^~~~~~~
   include/vdso/bits.h:7:26: note: expanded from macro 'BIT'
       7 | #define BIT(nr)                 (UL(1) << (nr))
         |                                        ^  ~~~~
   1 warning generated.


vim +1182 drivers/net/usb/ax88179a_devices.c

  1078	
  1079	static int ax88179a_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
  1080	{
  1081		struct ax88179_data *ax179_data = dev->driver_priv;
  1082		struct sk_buff *ax_skb;
  1083		u32 hdr_off, pkt_end;
  1084		__le64 *pkt_desc_ptr;
  1085		u16 vlan_tag;
  1086		u16 pkt_cnt;
  1087		u64 rx_hdr;
  1088	
  1089		/* SKB contents for AX179A-based chips:
  1090		 *   <packet 1>
  1091		 *   ...
  1092		 *   <packet N>
  1093		 *   <per-packet metadata entry 1>
  1094		 *   ...
  1095		 *   <per-packet metadata entry N>
  1096		 *   <rx_hdr>
  1097		 *
  1098		 * where:
  1099		 *   <packet N> contains pkt_len data bytes and padding:
  1100		 *		2 bytes of IP alignment (optional, depends on AX_RX_CTL_IPE flag)
  1101		 *		packet data received
  1102		 *		optional padding to 8-bytes boundary
  1103		 *   <per-packet metadata entry N> contains 8 bytes:
  1104		 *		pkt_len and fields AX_RXHDR_*
  1105		 *   <rx-hdr>	contains 8 bytes:
  1106		 *		pkt_cnt and hdr_off (offset of <per-packet metadata entry 1>)
  1107		 *
  1108		 * pkt_cnt is number of entries in the per-packet metadata array.
  1109		 */
  1110	
  1111		if (!skb || skb->len < sizeof(rx_hdr))
  1112			goto err;
  1113	
  1114		/* RX Descriptor Header */
  1115		skb_trim(skb, skb->len - sizeof(rx_hdr));
  1116		rx_hdr = get_unaligned_le64((__le64 *)skb_tail_pointer(skb));
  1117	
  1118		/* Check these packets */
  1119		hdr_off = FIELD_GET(AX179A_RX_DH_DESC_OFFSET, rx_hdr);
  1120		pkt_cnt = rx_hdr & AX179A_RX_DH_PKT_CNT_MASK;
  1121	
  1122		/* Consistency check header position, frames with PTP timestamps
  1123		 * have longer headers than normal frames, so check for minimum size
  1124		 */
  1125		if (hdr_off > skb->len - (pkt_cnt * sizeof(rx_hdr)))
  1126			goto err;
  1127	
  1128		/* Make sure that the bounds of the metadata array are inside the SKB
  1129		 * (and in front of the counter at the end).
  1130		 */
  1131		if (pkt_cnt * 8 + hdr_off > skb->len)
  1132			goto err;
  1133	
  1134		/* Packets must not overlap the metadata array */
  1135		skb_trim(skb, hdr_off);
  1136	
  1137		if (!pkt_cnt)
  1138			goto err;
  1139	
  1140		/* Get the first RX packet descriptor */
  1141		pkt_desc_ptr = (__le64 *)(skb->data + hdr_off);
  1142	
  1143		pkt_end = 0;
  1144		while (pkt_cnt--) {
  1145			u64 pkt_desc = get_unaligned_le64(pkt_desc_ptr);
  1146			u32 pkt_len_plus_padd;
  1147			u32 pkt_len;
  1148	
  1149			pkt_len = FIELD_GET(AX179A_RX_PD_LEN, pkt_desc);
  1150			pkt_len -= (ax179_data->ip_align ? 2 : 0);
  1151			pkt_len_plus_padd = ((pkt_len + 7 + (ax179_data->ip_align ? 2 : 0)) & 0x7FFF8);
  1152	
  1153			pkt_end += pkt_len_plus_padd;
  1154			if (pkt_end > hdr_off || (pkt_cnt == 0 && pkt_end != hdr_off))
  1155				goto err;
  1156	
  1157			if (pkt_desc & AX179A_RX_PD_DROP || !(pkt_desc & AX179A_RX_PD_RX_OK) ||
  1158			    pkt_len > (dev->hard_mtu + AX179A_RX_HW_PAD) || pkt_len < 2 + ETH_HLEN) {
  1159				skb_pull(skb, pkt_len_plus_padd);
  1160	
  1161				/* Next RX Packet Descriptor */
  1162				pkt_desc_ptr++;
  1163				continue;
  1164			}
  1165	
  1166			ax_skb = netdev_alloc_skb_ip_align(dev->net, pkt_len);
  1167			if (!ax_skb)
  1168				goto err;
  1169	
  1170			skb_put(ax_skb, pkt_len);
  1171			memcpy(ax_skb->data, skb->data + (ax179_data->ip_align ? AX179A_RX_HW_PAD : 0),
  1172			       pkt_len);
  1173	
  1174			if (ax179_data->rx_checksum)
  1175				ax88179a_rx_checksum(ax_skb, pkt_desc);
  1176	
  1177			if (pkt_desc & AX179A_RX_PD_VLAN) {
  1178				vlan_tag = pkt_desc >> AX179A_RX_PD_VLAN_SHIFT;
  1179				__vlan_hwaccel_put_tag(ax_skb, htons(ETH_P_8021Q), vlan_tag);
  1180			}
  1181	
> 1182			if (pkt_desc & AX179A_RX_PD_PTP) {
  1183				u64 ts_l = get_unaligned_le64(++pkt_desc_ptr);
  1184				u64 ts_h = get_unaligned_le64(++pkt_desc_ptr);
  1185	
  1186				ax88179a_process_rx_ts(ax_skb, ts_l, ts_h);
  1187			}
  1188	
  1189			usbnet_skb_return(dev, ax_skb);
  1190			skb_pull(skb, pkt_len_plus_padd);
  1191	
  1192			/* Next RX Packet Header */
  1193			pkt_desc_ptr++;
  1194		}
  1195	
  1196		return 1;
  1197	
  1198	err:
  1199		return 0;
  1200	}
  1201	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Technical Details
Message-ID: <20261130050726.LLJ9oe3l-lkp@intel.com>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373671-linux-kernel-netdev=dewy.ru
References: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373671-linux-kernel-netdev=dewy.ru
From: lkp@intel.com (kernel test robot)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP
Date: Mon, 30 Nov 2026 05:18:23 +0800
Organization: Usenet Network
Message-ID: <20261130050726.LLJ9oe3l-lkp@intel.com>
References: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1263653"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Z39XoVqjiswgE1aU2m4/4VL6DYM= sha256:2OC564KOQCXHV3ffMN/SKtQmvhUAJN8FA1qs+GBqSwA=
	sha1:5P1aDBj6xkzp65lpNCpUmnp0ryA= sha256:zXi68v0GC/vpSyrxa3OVzwwbM/sOpxpBFnpNNFyM3KA=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 82776125FAF; Mon, 30 Nov 2026 00:19:01 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.952
X-Spam-Status: No, score=-1.952 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001,
	DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=intel.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id X-jQOYrmBOea;
	Mon, 30 Nov 2026 00:18:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373671-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=intel.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 35982125FAB; Mon, 30 Nov 2026 00:18:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 6B7D4242A2; Sun, 29 Nov 2026 21:18:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795987121;
	b=D80D59zToySbbPuzVyqnaCzo5aDcrqz4wFmaWk5Zgaz+9ULkJ1j39BW8fm46CpbuXuqb
	 he3vu7iqn2UloWu87Fuq0nipbC9zum0N0vLDljx7PkVJET/bFTcmTOlZlxt/wgXJ0RFf+
	 VcY98sl8wKwrCw/wTmbfBuVgegcNpwgCsg6J7f/a9iR/YqlQCyB7cGXykP2xfG0T3VIFz
	 mXfnq/m5e/OKMsnmM2vCI585bCX0k0h8HNg2Fh3r17S84lnbkfYAcXLKAacjJagAg2ROS
	 /9ONCEkIhyMzW2LpeYhHbHTt7+6mB/1pD8X9ADgM5g6oMXaT7fChjFNvpp7DYU51Q4Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795987121;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
	 X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV:X-IronPort-AV:
	 Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:
	 Received:Received:Date:From:To:Cc:Subject:Message-ID:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=mf6U5GFZEQdI6xtwgB+OamfmsAdmAPqhfXbNs4FtiRs=;
	b=ZW/IqITXt8UMRZmrHl0J3PP/KQuJs8DjSrLL+Y9aXlMRRUhdo3yACPaYP+wBjFMEGzQs
	 yHjSpKr7i/X5+I2Rg/dOuwsD6/0AAUqdBBOcBtoa8TE5AGzaGAxFzoosaSRxFK5+WORTS
	 UutdZYxkkBQbVBZJi1+HiGYYYBYRCk/gOWc+lFPmgf0zBG4BGoT747Khjck5EnmrxBZW8
	 qLzI0PRfkYwKLzCT24Mseg4eGdsQ1KAA8J/zmdAgTJ4uOxVFEVlboatjzwRxVtEYEQtLO
	 mpbWEdB+PJudV3YaN2KPngfQyHMweOlWdZAE2CfU36yd7qMAjH92LdjP2pq6MjYPdNg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CDJAAkXf;
	dmarc=pass header.from=intel.com;
	spf=pass smtp.mailfrom=intel.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D96E606A333;
	Sun, 29 Nov 2026 21:18:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CDJAAkXf
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795987120;
	b=nvgUaev6pd2xc9RumRODl+ZQNLTuQGPICgTrk1GdvMDa3CpWTeZ64o3SvEElaKaGLCOX
	 eKvllNjWzUbMqMtYSYl7ydM+tVFh1LSnC3I0yUp5I+RRwN2l1bl/nrFF+28XSQVpk2stD
	 YpRqwLz7GFegZ3lJ4bC0lsdvWyz6QHxWd3yI2ZFikXB0ZfiC/jD6pZUbOHZEYQVk/CB03
	 WA+wx4KLw541BTreSDLPMC6dEXZKZGvLCPiDKvfqfrHPwAFFT0oqNf42dW2Rk7zn/CmxR
	 owtmMrp5sYVH/eReB/uxIcrzE6LNA0/uhQ11ailKjeTPbdPzVlC6v0AZPx/tDHlzZwg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795987120;
	h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:
	 X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID:
	 X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To:
	 Cc:Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=mf6U5GFZEQdI6xtwgB+OamfmsAdmAPqhfXbNs4FtiRs=;
	b=0lXj7eLTVaGlF8fTQuY/kAEfKD90Mc1zhEAKSzoZHaBFzLKnUa/E1CnepyaAGkmzmpXS
	 cGJTmnmo89CAKQ7F/yOQumMe5qUFn/HWHnVqSVtOwLvZ7a+W6rCXWfgkkE+p+AKbT4epu
	 YbbIZd0uNytdrNvMOLETxWcnyImqV731flM8iY/FyKEyveLuHoCDfkTbJFIgLSM7rdFbV
	 O6wVNLMw+WpcreRl4FIAgsp4UICTcuBnwH4no3fkpYP0CWWZ1njAMiEMy0/Lr3RlPB5h5
	 awaCBdTdniOSTae1vTwrzUtrJWIJHEjnyAuetPTfEhGwiEwIj/tuT4FiiTgJ4oFdHNw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=intel.com;
	spf=pass smtp.mailfrom=intel.com;
	dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=CDJAAkXf;
	arc=none smtp.remote-ip=198.175.65.10
X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7C33606A33B;
	Sun, 29 Nov 2026 21:18:37 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7C33606A33B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
  t=1795987118; x=1827523118;
  h=date:from:to:cc:subject:message-id:references:
   mime-version:in-reply-to;
  bh=Dt+vNDpcckk8i2AV9X2seg5nxkvd/LGcJYycKSraHZk=;
  b=CDJAAkXfI5/bBL+jxLE19cwyHexa6pduciGoXChjV9rak74tYRC6/wDO
   fNVgQB7I/8F/dbN+ep03aGAfhk7L0aygrcfcxH+HGMGKbBSOZUinf+Jvc
   hDo6KE9kCr9XvlQqYy9j32p9lKEl+2fXliMfPA275SxxjrDocDEsYNV7k
   YZ9e8qxp/TAwssokdl/dAhbz6J/chO1EkzHYz4Fsg/dLQuYooQMhpEkpF
   35rrdXcBLgUuOYNvtB/KDurl6u++Gl253Kzh4CdCPjg3Pd8xR6pFgjUA+
   dUAzL5DUuLwJopFj1T+MovXMgUS7BhIO2aABL4G/Ia8yIDg9IfcgAEdSo
   Q==;
X-CSE-ConnectionGUID: EGOiIu7UQjCD4hltGalByA==
X-CSE-MsgGUID: TLn5iYFGT5+Ni4uau2BkuA==
X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4742996"
X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; 
   d="scan'208";a="4742996"
X-Received: from orviesa009.jf.intel.com ([10.64.159.149])
  by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 13:18:37 -0800
X-CSE-ConnectionGUID: c5MPrZ0NS3qvRscTLlqZxQ==
X-CSE-MsgGUID: FYK0whDLThaI7GaWzs1sWg==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.27,241,1787036400"; 
   d="scan'208";a="13165234"
X-Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150])
  by orviesa009.jf.intel.com with ESMTP; 29 Nov 2026 13:18:35 -0800
X-Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2)
	(envelope-from <lkp@intel.com>)
	id 1xXmI3-00000001ZXF-25fy;
	Sun, 29 Nov 2026 21:18:31 +0000
X-Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	netdev@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Birger Koblitz <mail@birger-koblitz.de>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de>