All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Oliver Neukum <oneukum@suse.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: include/linux/usb/usbnet.h:313:33: warning: 'cdc_ether_ethtool_ops' defined but not used
Date: Tue, 14 Jul 2026 20:23:48 +0200	[thread overview]
Message-ID: <202607142001.FNZl5LGw-lkp@intel.com> (raw)

tree:   https://github.com/intel-lab-lkp/linux/commits/Oliver-Neukum/net-usb-centralize-usbnet_cdc_zte_rx_fixup-in-usbnet/20260714-200029
head:   01c24668a6e35556ec573ceb5a3b709515946bc4
commit: be5b49f1b5e430f22aa334fd97bc86ef6c2374a0 net: usb: move exported symbols from cdc_ether to usbnet
date:   6 hours ago
config: x86_64-rhel-9.4-bpf (https://download.01.org/0day-ci/archive/20260714/202607142001.FNZl5LGw-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260714/202607142001.FNZl5LGw-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/202607142001.FNZl5LGw-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/net/usb/asix.h:25,
                    from drivers/net/usb/asix_devices.c:10:
>> include/linux/usb/usbnet.h:313:33: warning: 'cdc_ether_ethtool_ops' defined but not used [-Wunused-const-variable=]
     313 | static const struct ethtool_ops cdc_ether_ethtool_ops = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/usb/usbnet.h:19:17: warning: 'mbm_guid' defined but not used [-Wunused-const-variable=]
      19 | static const u8 mbm_guid[16] = {
         |                 ^~~~~~~~


vim +/cdc_ether_ethtool_ops +313 include/linux/usb/usbnet.h

   311	
   312	/* We need to override usbnet_*_link_ksettings in bind() */
 > 313	static const struct ethtool_ops cdc_ether_ethtool_ops = {
   314		.get_link		= usbnet_get_link,
   315		.nway_reset		= usbnet_nway_reset,
   316		.get_drvinfo		= usbnet_get_drvinfo,
   317		.get_msglevel		= usbnet_get_msglevel,
   318		.set_msglevel		= usbnet_set_msglevel,
   319		.get_ts_info		= ethtool_op_get_ts_info,
   320		.get_link_ksettings	= usbnet_get_link_ksettings_internal,
   321		.set_link_ksettings	= NULL,
   322	};
   323	

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

                 reply	other threads:[~2026-07-14 18:24 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=202607142001.FNZl5LGw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=oneukum@suse.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 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.