* [android-common:android13-5.10 0/3] drivers/net/ethernet/freescale/enetc/enetc_pf.c:993:26: warning: variable 'priv' set but not used
@ 2026-10-21 21:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-21 21:49 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-21 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 21:49 [android-common:android13-5.10 0/3] drivers/net/ethernet/freescale/enetc/enetc_pf.c:993:26: warning: variable 'priv' set but not used 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.