Subject: Re: [PATCH net-next v4 3/6] ionic: convert to ndo_hwtstamp API

From: kernel test robot <[email-masked]>
Date: Fri, 24 Oct 2025 03:49:18 +0800

Hi Vadim,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Vadim-Fedorenko/octeontx2-convert-to-ndo_hwtstamp-API/20251022-185103
base:   net-next/main
patch link:    https://lore.kernel.org/r/20251022104900.901973-4-vadim.fedorenko%40linux.dev
patch subject: [PATCH net-next v4 3/6] ionic: convert to ndo_hwtstamp API
config: x86_64-randconfig-001-20251024 (https://download.01.org/0day-ci/archive/20251024/[email-masked]/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/20251024/[email-masked]/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 <[email-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/pensando/ionic/ionic_lif.c:2821:22: error: use of undeclared identifier 'ionic_hwstamp_get'; did you mean 'ionic_lif_hwstamp_get'?
    2821 |         .ndo_hwtstamp_get       = ionic_hwstamp_get,
         |                                   ^~~~~~~~~~~~~~~~~
         |                                   ionic_lif_hwstamp_get
   drivers/net/ethernet/pensando/ionic/ionic_lif.h:384:19: note: 'ionic_lif_hwstamp_get' declared here
     384 | static inline int ionic_lif_hwstamp_get(struct ionic_lif *lif, struct ifreq *ifr)
         |                   ^
>> drivers/net/ethernet/pensando/ionic/ionic_lif.c:2822:22: error: use of undeclared identifier 'ionic_hwstamp_set'; did you mean 'ionic_lif_hwstamp_set'?
    2822 |         .ndo_hwtstamp_set       = ionic_hwstamp_set,
         |                                   ^~~~~~~~~~~~~~~~~
         |                                   ionic_lif_hwstamp_set
   drivers/net/ethernet/pensando/ionic/ionic_lif.h:379:19: note: 'ionic_lif_hwstamp_set' declared here
     379 | static inline int ionic_lif_hwstamp_set(struct ionic_lif *lif, struct ifreq *ifr)
         |                   ^
>> drivers/net/ethernet/pensando/ionic/ionic_lif.c:2821:22: error: incompatible function pointer types initializing 'int (*)(struct net_device *, struct kernel_hwtstamp_config *)' with an expression of type 'int (struct ionic_lif *, struct ifreq *)' [-Wincompatible-function-pointer-types]
    2821 |         .ndo_hwtstamp_get       = ionic_hwstamp_get,
         |                                   ^~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/pensando/ionic/ionic_lif.c:2822:22: error: incompatible function pointer types initializing 'int (*)(struct net_device *, struct kernel_hwtstamp_config *, struct netlink_ext_ack *)' with an expression of type 'int (struct ionic_lif *, struct ifreq *)' [-Wincompatible-function-pointer-types]
    2822 |         .ndo_hwtstamp_set       = ionic_hwstamp_set,
         |                                   ^~~~~~~~~~~~~~~~~
   4 errors generated.

vim +2821 drivers/net/ethernet/pensando/ionic/ionic_lif.c

  2797	
  2798	static const struct net_device_ops ionic_netdev_ops = {
  2799		.ndo_open               = ionic_open,
  2800		.ndo_stop               = ionic_stop,
  2801		.ndo_start_xmit		= ionic_start_xmit,
  2802		.ndo_bpf		= ionic_xdp,
  2803		.ndo_xdp_xmit		= ionic_xdp_xmit,
  2804		.ndo_get_stats64	= ionic_get_stats64,
  2805		.ndo_set_rx_mode	= ionic_ndo_set_rx_mode,
  2806		.ndo_set_features	= ionic_set_features,
  2807		.ndo_set_mac_address	= ionic_set_mac_address,
  2808		.ndo_validate_addr	= eth_validate_addr,
  2809		.ndo_tx_timeout         = ionic_tx_timeout,
  2810		.ndo_change_mtu         = ionic_change_mtu,
  2811		.ndo_vlan_rx_add_vid    = ionic_vlan_rx_add_vid,
  2812		.ndo_vlan_rx_kill_vid   = ionic_vlan_rx_kill_vid,
  2813		.ndo_set_vf_vlan	= ionic_set_vf_vlan,
  2814		.ndo_set_vf_trust	= ionic_set_vf_trust,
  2815		.ndo_set_vf_mac		= ionic_set_vf_mac,
  2816		.ndo_set_vf_rate	= ionic_set_vf_rate,
  2817		.ndo_set_vf_spoofchk	= ionic_set_vf_spoofchk,
  2818		.ndo_get_vf_config	= ionic_get_vf_config,
  2819		.ndo_set_vf_link_state	= ionic_set_vf_link_state,
  2820		.ndo_get_vf_stats       = ionic_get_vf_stats,
> 2821		.ndo_hwtstamp_get	= ionic_hwstamp_get,
> 2822		.ndo_hwtstamp_set	= ionic_hwstamp_set,
  2823	};
  2824	

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