All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-5.10 19782/30000] drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:3270:29: sparse: sparse: symbol 'hns3_unic_netdev_ops' was not declared. Should it be static?
@ 2024-09-28 16:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-28 16:05 UTC (permalink / raw)
  To: kernel, Fengyan; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   bef6f06e039b8929481350d15d6d8c3ba81c6fd2
commit: 737ec46e963210dc3b856637e871fa5b0c91316e [19782/30000] UNIC: Adds the process of UNIC driver initializing
config: arm64-randconfig-r131-20240925 (https://download.01.org/0day-ci/archive/20240929/202409290026.ODSSLRxB-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240929/202409290026.ODSSLRxB-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/202409290026.ODSSLRxB-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:1200:29: sparse: sparse: restricted __be32 degrades to integer
>> drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:3270:29: sparse: sparse: symbol 'hns3_unic_netdev_ops' was not declared. Should it be static?

vim +/hns3_unic_netdev_ops +3270 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

  3269	
> 3270	const struct net_device_ops hns3_unic_netdev_ops = {
  3271		.ndo_open		= hns3_nic_net_open,
  3272		.ndo_stop		= hns3_nic_net_stop,
  3273		.ndo_start_xmit		= hns3_nic_net_xmit,
  3274		.ndo_tx_timeout		= hns3_nic_net_timeout,
  3275		.ndo_do_ioctl		= hns3_nic_do_ioctl,
  3276		.ndo_change_mtu		= hns3_nic_change_mtu,
  3277		.ndo_set_features	= hns3_nic_set_features,
  3278		.ndo_features_check	= hns3_features_check,
  3279		.ndo_get_stats64	= hns3_nic_get_stats64,
  3280		.ndo_setup_tc		= hns3_nic_setup_tc,
  3281		.ndo_set_rx_mode	= hns3_nic_set_rx_mode,
  3282		.ndo_set_vf_trust	= hns3_set_vf_trust,
  3283	#ifdef CONFIG_RFS_ACCEL
  3284		.ndo_rx_flow_steer	= hns3_rx_flow_steer,
  3285	#endif
  3286		.ndo_get_vf_config	= hns3_nic_get_vf_config,
  3287		.ndo_set_vf_link_state	= hns3_nic_set_vf_link_state,
  3288		.ndo_set_vf_rate	= hns3_nic_set_vf_rate,
  3289		.ndo_select_queue	= hns3_nic_select_queue,
  3290	};
  3291	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-28 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 16:05 [openeuler:OLK-5.10 19782/30000] drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:3270:29: sparse: sparse: symbol 'hns3_unic_netdev_ops' was not declared. Should it be static? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.