All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [frank-w-bpi-r2-4.14:6.18-rc 147/148] drivers/net/phy/sfp.c:463:13: warning: 'sfp_quirk_disable_autoneg' defined but not used
Date: Mon, 3 Nov 2025 11:19:55 +0800	[thread overview]
Message-ID: <202511031107.InZkIrzD-lkp@intel.com> (raw)

tree:   https://github.com/frank-w/BPI-R2-4.14 6.18-rc
head:   14f53e679f62008f01f236c7e528c2d89e4b2f3d
commit: 44fe3b3b18ca6b844505d0553166d19137f308ab [147/148] net: sfp: drop unused function after changing 2.5G sfp to rollball
config: nios2-randconfig-r073-20251103 (https://download.01.org/0day-ci/archive/20251103/202511031107.InZkIrzD-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251103/202511031107.InZkIrzD-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/202511031107.InZkIrzD-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/phy/sfp.c:463:13: warning: 'sfp_quirk_disable_autoneg' defined but not used [-Wunused-function]
    static void sfp_quirk_disable_autoneg(const struct sfp_eeprom_id *id,
                ^~~~~~~~~~~~~~~~~~~~~~~~~


vim +/sfp_quirk_disable_autoneg +463 drivers/net/phy/sfp.c

23571c7b964374 Russell King (Oracle  2022-09-13  462) 
50e96acbe11667 Russell King (Oracle  2023-03-21 @463) static void sfp_quirk_disable_autoneg(const struct sfp_eeprom_id *id,
a7dc35a9e49b10 Russell King (Oracle  2025-09-16  464) 				      struct sfp_module_caps *caps)
50e96acbe11667 Russell King (Oracle  2023-03-21  465) {
a7dc35a9e49b10 Russell King (Oracle  2025-09-16  466) 	linkmode_clear_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, caps->link_modes);
50e96acbe11667 Russell King (Oracle  2023-03-21  467) }
50e96acbe11667 Russell King (Oracle  2023-03-21  468) 

:::::: The code at line 463 was first introduced by commit
:::::: 50e96acbe11667b6fe9d99e1348c6c224b2f11dd net: sfp: add quirk for 2.5G copper SFP

:::::: TO: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

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

                 reply	other threads:[~2025-11-03  3:21 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=202511031107.InZkIrzD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=frank-w@public-files.de \
    --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.