All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android13-5.10 0/3] drivers/net/ethernet/freescale/enetc/enetc_pf.c:993:26: warning: variable 'priv' set but not used
Date: Thu, 22 Oct 2026 05:49:06 +0800	[thread overview]
Message-ID: <202610220534.8tzhlUvv-lkp@intel.com> (raw)

Hi Vladimir,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android13-5.10
head:   d071d2b9ad81d1b4a78e728e2eb5664ffcd6635a
commit: 1f080b8caae9bb59d5db89509f41e17f6d41edd2 [0/3] net: enetc: manage ENETC_F_QBV in priv->active_offloads only when enabled
config: i386-buildonly-randconfig-1002-20261022 (https://download.01.org/0day-ci/archive/20261022/202610220534.8tzhlUvv-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 2c419645e808a6667eee9dbb16c828f77e2fd2f0)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261022/202610220534.8tzhlUvv-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/202610220534.8tzhlUvv-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/ethernet/freescale/enetc/enetc_pf.c:993:26: warning: variable 'priv' set but not used [-Wunused-but-set-variable]
     993 |         struct enetc_ndev_priv *priv;
         |                                 ^
   1 warning generated.


vim +/priv +993 drivers/net/ethernet/freescale/enetc/enetc_pf.c

63876df5615edf Vladimir Oltean 2021-03-01   986  
71b77a7a27a338 Claudiu Manoil  2020-10-07   987  static void enetc_pl_mac_link_up(struct phylink_config *config,
71b77a7a27a338 Claudiu Manoil  2020-10-07   988  				 struct phy_device *phy, unsigned int mode,
71b77a7a27a338 Claudiu Manoil  2020-10-07   989  				 phy_interface_t interface, int speed,
71b77a7a27a338 Claudiu Manoil  2020-10-07   990  				 int duplex, bool tx_pause, bool rx_pause)
975d183ef0ca07 Michael Walle   2020-07-20   991  {
71b77a7a27a338 Claudiu Manoil  2020-10-07   992  	struct enetc_pf *pf = phylink_to_enetc_pf(config);
71b77a7a27a338 Claudiu Manoil  2020-10-07  @993  	struct enetc_ndev_priv *priv;
71b77a7a27a338 Claudiu Manoil  2020-10-07   994  
71b77a7a27a338 Claudiu Manoil  2020-10-07   995  	priv = netdev_priv(pf->si->ndev);
1f080b8caae9bb Vladimir Oltean 2022-05-10   996  
1f080b8caae9bb Vladimir Oltean 2022-05-10   997  	if (pf->si->hw_features & ENETC_SI_F_QBV)
71b77a7a27a338 Claudiu Manoil  2020-10-07   998  		enetc_sched_speed_set(priv, speed);
975d183ef0ca07 Michael Walle   2020-07-20   999  
63876df5615edf Vladimir Oltean 2021-03-01  1000  	if (!phylink_autoneg_inband(mode) &&
63876df5615edf Vladimir Oltean 2021-03-01  1001  	    phy_interface_mode_is_rgmii(interface))
63876df5615edf Vladimir Oltean 2021-03-01  1002  		enetc_force_rgmii_mac(&pf->si->hw, speed, duplex);
63876df5615edf Vladimir Oltean 2021-03-01  1003  
71b77a7a27a338 Claudiu Manoil  2020-10-07  1004  	enetc_mac_enable(&pf->si->hw, true);
975d183ef0ca07 Michael Walle   2020-07-20  1005  }
975d183ef0ca07 Michael Walle   2020-07-20  1006  

:::::: The code at line 993 was first introduced by commit
:::::: 71b77a7a27a3388c97e754a2c4e282df3f568fd7 enetc: Migrate to PHYLINK and PCS_LYNX

:::::: TO: Claudiu Manoil <claudiu.manoil@nxp.com>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

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

                 reply	other threads:[~2026-10-21 21:49 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=202610220534.8tzhlUvv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.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.