All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Fengyan <mufengyan@hisilicon.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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?
Date: Sun, 29 Sep 2024 00:05:04 +0800	[thread overview]
Message-ID: <202409290026.ODSSLRxB-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-09-28 16:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202409290026.ODSSLRxB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=mufengyan@hisilicon.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.