mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Birger Koblitz <mail@birger-koblitz.de>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Russell King <linux@armlinux.org.uk>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Huacai Chen <chenhuacai@kernel.org>,
	WANG Xuerui <kernel@xen0n.name>,
	Eric Dumazet <edumazet@kernel.org>
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, loongarch@lists.linux.dev,
	Jianhui Xu <neuromoments@gmail.com>,
	Birger Koblitz <mail@birger-koblitz.de>
Subject: Re: [PATCH net-next v16 04/13] ax88179_178a: Add HW support for AX179A-based chips
Date: Mon, 5 Oct 2026 04:12:13 +0800	[thread overview]
Message-ID: <202610050430.ZlYvvYse-lkp@intel.com> (raw)
In-Reply-To: <20261004-ax88179a-v16-4-2a9ae4e68f7b@birger-koblitz.de>

Hi Birger,

kernel test robot noticed the following build errors:

[auto build test ERROR on 071876fd50482a68603a9460d80dd6dd58827ee1]

url:    https://github.com/intel-lab-lkp/linux/commits/Birger-Koblitz/phylink-Add-phylink_mac_interrupt/20261004-073905
base:   071876fd50482a68603a9460d80dd6dd58827ee1
patch link:    https://lore.kernel.org/r/20261004-ax88179a-v16-4-2a9ae4e68f7b%40birger-koblitz.de
patch subject: [PATCH net-next v16 04/13] ax88179_178a: Add HW support for AX179A-based chips
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20261005/202610050430.ZlYvvYse-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5f609f950d2e80addf5566623013db68394334db)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261005/202610050430.ZlYvvYse-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/202610050430.ZlYvvYse-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/usb/ax88179a_devices.c:694:2: error: incompatible integer to pointer conversion passing 'u64' (aka 'unsigned long long') to parameter of type '__u64 *' (aka 'unsigned long long *'); take the address with & [-Wint-conversion]
     694 |         le64_to_cpus(rx_hdr);
         |         ^~~~~~~~~~~~~~~~~~~~
   include/linux/byteorder/generic.h:111:22: note: expanded from macro 'le64_to_cpus'
     111 | #define le64_to_cpus __le64_to_cpus
         |                      ^
   include/uapi/linux/byteorder/big_endian.h:94:37: note: expanded from macro '__le64_to_cpus'
      94 | #define __le64_to_cpus(x) __swab64s((x))
         |                                     ^~~
   include/uapi/linux/swab.h:265:46: note: passing argument to parameter 'p' here
     265 | static __always_inline void __swab64s(__u64 *p)
         |                                              ^
   1 error generated.


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

   655	
   656	static int ax88179a_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
   657	{
   658		struct ax88179_data *ax179_data = dev->driver_priv;
   659		struct sk_buff *ax_skb;
   660		u32 hdr_off, pkt_end;
   661		u64 *pkt_desc_ptr;
   662		u16 vlan_tag;
   663		u16 pkt_cnt;
   664		u64 rx_hdr;
   665	
   666		/* SKB contents for AX179A-based chips:
   667		 *   <packet 1>
   668		 *   ...
   669		 *   <packet N>
   670		 *   <per-packet metadata entry 1>
   671		 *   ...
   672		 *   <per-packet metadata entry N>
   673		 *   <rx_hdr>
   674		 *
   675		 * where:
   676		 *   <packet N> contains pkt_len data bytes and padding:
   677		 *		2 bytes of IP alignment (optional, depends on AX_RX_CTL_IPE flag)
   678		 *		packet data received
   679		 *		optional padding to 8-bytes boundary
   680		 *   <per-packet metadata entry N> contains 8 bytes:
   681		 *		pkt_len and fields AX_RXHDR_*
   682		 *   <rx-hdr>	contains 8 bytes:
   683		 *		pkt_cnt and hdr_off (offset of <per-packet metadata entry 1>)
   684		 *
   685		 * pkt_cnt is number of entries in the per-packet metadata array.
   686		 */
   687	
   688		if (!skb || skb->len < sizeof(rx_hdr))
   689			goto err;
   690	
   691		/* RX Descriptor Header */
   692		skb_trim(skb, skb->len - sizeof(rx_hdr));
   693		rx_hdr = *(u64 *)skb_tail_pointer(skb);
 > 694		le64_to_cpus(rx_hdr);
   695	
   696		/* Check these packets */
   697		hdr_off = FIELD_GET(AX179A_RX_DH_DESC_OFFSET, rx_hdr);
   698		pkt_cnt = rx_hdr & AX179A_RX_DH_PKT_CNT_MASK;
   699	
   700		/* Consistency check header position */
   701		if (hdr_off != skb->len - (pkt_cnt * sizeof(rx_hdr)))
   702			goto err;
   703	
   704		/* Make sure that the bounds of the metadata array are inside the SKB
   705		 * (and in front of the counter at the end).
   706		 */
   707		if (pkt_cnt * 8 + hdr_off > skb->len)
   708			goto err;
   709	
   710		/* Packets must not overlap the metadata array */
   711		skb_trim(skb, hdr_off);
   712	
   713		if (!pkt_cnt)
   714			goto err;
   715	
   716		/* Get the first RX packet descriptor */
   717		pkt_desc_ptr = (u64 *)(skb->data + hdr_off);
   718	
   719		pkt_end = 0;
   720		while (pkt_cnt--) {
   721			u64 pkt_desc = le64_to_cpu(*pkt_desc_ptr);
   722			u32 pkt_len_plus_padd;
   723			u32 pkt_len;
   724	
   725			pkt_len = FIELD_GET(AX179A_RX_PD_LEN, pkt_desc);
   726			pkt_len -= (ax179_data->ip_align ? 2 : 0);
   727			pkt_len_plus_padd = ((pkt_len + 7 + (ax179_data->ip_align ? 2 : 0)) & 0x7FFF8);
   728	
   729			pkt_end += pkt_len_plus_padd;
   730			if (pkt_end > hdr_off || (pkt_cnt == 0 && pkt_end != hdr_off))
   731				goto err;
   732	
   733			if (pkt_desc & AX179A_RX_PD_DROP || !(pkt_desc & AX179A_RX_PD_RX_OK) ||
   734			    pkt_len > (dev->hard_mtu + AX179A_RX_HW_PAD) || pkt_len < 2 + ETH_HLEN) {
   735				skb_pull(skb, pkt_len_plus_padd);
   736	
   737				/* Next RX Packet Descriptor */
   738				pkt_desc_ptr++;
   739				continue;
   740			}
   741	
   742			ax_skb = netdev_alloc_skb_ip_align(dev->net, pkt_len);
   743			if (!ax_skb)
   744				goto err;
   745	
   746			skb_put(ax_skb, pkt_len);
   747			memcpy(ax_skb->data, skb->data + (ax179_data->ip_align ? AX179A_RX_HW_PAD : 0),
   748			       pkt_len);
   749	
   750			if (ax179_data->rx_checksum)
   751				ax88179a_rx_checksum(ax_skb, pkt_desc);
   752	
   753			if (pkt_desc & AX179A_RX_PD_VLAN) {
   754				vlan_tag = pkt_desc >> AX179A_RX_PD_VLAN_SHIFT;
   755				__vlan_hwaccel_put_tag(ax_skb, htons(ETH_P_8021Q), vlan_tag);
   756			}
   757	
   758			usbnet_skb_return(dev, ax_skb);
   759			skb_pull(skb, pkt_len_plus_padd);
   760	
   761			/* Next RX Packet Header */
   762			pkt_desc_ptr++;
   763		}
   764	
   765		return 1;
   766	
   767	err:
   768		return 0;
   769	}
   770	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-10-04 20:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-04  5:39 [PATCH net-next v16 00/13] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 01/13] phylink: Add phylink_mac_interrupt Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 02/13] phylib: Add support for PHYs with broken forced mode Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 03/13] ax88179_178a: Split driver into library and device specific code Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 04/13] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-10-04 18:06   ` kernel test robot
2026-10-04 20:12   ` kernel test robot [this message]
2026-10-04  5:39 ` [PATCH net-next v16 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 06/13] ax88179_178a: Add EEE configuration support for AX88179A PHYs Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 07/13] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 08/13] ax88179_178a: Add AX179A/AX279 multicast configuration Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 09/13] ax88179_178a: Add Suspend/resume support for AX88179A/772D/279 Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 10/13] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 11/13] ax88179_178a: Update driver name and information Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 12/13] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-10-04  5:39 ` [PATCH net-next v16 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279 Birger Koblitz
2026-10-04 15:52   ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610050430.ZlYvvYse-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=chenhuacai@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kernel@xen0n.name \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=llvm@lists.linux.dev \
    --cc=loongarch@lists.linux.dev \
    --cc=mail@birger-koblitz.de \
    --cc=netdev@vger.kernel.org \
    --cc=neuromoments@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®