All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-lts:pr/69 1/1] drivers/net/ethernet/mellanox/mlxsw/core.c:754:23: warning: variable 'mlxsw_driver' set but not used
@ 2025-02-24 22:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-24 22:09 UTC (permalink / raw)
  Cc: oe-kbuild-all

tree:   https://github.com/intel/linux-intel-lts.git pr/69
head:   f36ea6678b4077d9bbb4644e73977fb91d187ab7
commit: 8122e08b1d876b9af605db5ad351961c5ea276ed [1/1] Allow Mellanox switch devices to be configured if only I2C bus is set
config: sparc64-randconfig-001-20250224 (https://download.01.org/0day-ci/archive/20250225/202502250646.FYpXhd7n-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250225/202502250646.FYpXhd7n-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/202502250646.FYpXhd7n-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/mellanox/mlxsw/core.c: In function 'mlxsw_core_driver_put':
>> drivers/net/ethernet/mellanox/mlxsw/core.c:754:23: warning: variable 'mlxsw_driver' set but not used [-Wunused-but-set-variable]
     struct mlxsw_driver *mlxsw_driver;
                          ^~~~~~~~~~~~


vim +/mlxsw_driver +754 drivers/net/ethernet/mellanox/mlxsw/core.c

93c1edb27f9e7e Jiri Pirko 2015-07-29  751  
93c1edb27f9e7e Jiri Pirko 2015-07-29  752  static void mlxsw_core_driver_put(const char *kind)
93c1edb27f9e7e Jiri Pirko 2015-07-29  753  {
93c1edb27f9e7e Jiri Pirko 2015-07-29 @754  	struct mlxsw_driver *mlxsw_driver;
93c1edb27f9e7e Jiri Pirko 2015-07-29  755  
93c1edb27f9e7e Jiri Pirko 2015-07-29  756  	spin_lock(&mlxsw_core_driver_list_lock);
93c1edb27f9e7e Jiri Pirko 2015-07-29  757  	mlxsw_driver = __driver_find(kind);
93c1edb27f9e7e Jiri Pirko 2015-07-29  758  	spin_unlock(&mlxsw_core_driver_list_lock);
93c1edb27f9e7e Jiri Pirko 2015-07-29  759  }
93c1edb27f9e7e Jiri Pirko 2015-07-29  760  

:::::: The code at line 754 was first introduced by commit
:::::: 93c1edb27f9e7ef7f276b91763c93242bbda71cb mlxsw: Introduce Mellanox switch driver core

:::::: TO: Jiri Pirko <jiri@mellanox.com>
:::::: CC: David S. Miller <davem@davemloft.net>

-- 
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:[~2025-02-24 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 22:09 [intel-lts:pr/69 1/1] drivers/net/ethernet/mellanox/mlxsw/core.c:754:23: warning: variable 'mlxsw_driver' 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.