All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [intel-lts:pr/69 1/1] drivers/net/ethernet/mellanox/mlxsw/core.c:754:23: warning: variable 'mlxsw_driver' set but not used
Date: Tue, 25 Feb 2025 06:09:41 +0800	[thread overview]
Message-ID: <202502250646.FYpXhd7n-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-02-24 22:09 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=202502250646.FYpXhd7n-lkp@intel.com \
    --to=lkp@intel.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.