From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7C33606A33B 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.a=rsa-sha256 header.s=Intel header.b=CDJAAkXf 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" 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" 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 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xXmI3-00000001ZXF-25fy; Sun, 29 Nov 2026 21:18:31 +0000 Date: Mon, 30 Nov 2026 05:18:23 +0800 From: kernel test robot To: Birger Koblitz , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Russell King 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 Subject: Re: [PATCH net-next 3/3] net: usb: ax88179: Enable PTP Message-ID: <20261130050726.LLJ9oe3l-lkp@intel.com> References: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261129-ptp-v1-3-8148c402beaf@birger-koblitz.de> 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 | 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 * 1091 * ... 1092 * 1093 * 1094 * ... 1095 * 1096 * 1097 * 1098 * where: 1099 * 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 * contains 8 bytes: 1104 * pkt_len and fields AX_RXHDR_* 1105 * contains 8 bytes: 1106 * pkt_cnt and hdr_off (offset of ) 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