* drivers/net/dsa/motorcomm/leds.c:350:1: warning: 'yt921x_cled_hw_control_get_device' defined but not used
@ 2026-09-03 7:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-03 7:55 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/David-Yang/net-dsa-yt921x-Check-lock-status-with-lockdep_assert_held_once/20260831-123854, commit: 333cd3d87e5b9f6b7e6ee2840d30563ec8df9e82"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: David Yang <mmyangfl@gmail.com>
CC: 0day robot <lkp@intel.com>
CC: Andrew Lunn <andrew@lunn.ch>
tree: https://github.com/intel-lab-lkp/linux/commits/David-Yang/net-dsa-yt921x-Check-lock-status-with-lockdep_assert_held_once/20260831-123854
head: fd1e723564e7fedf4e4c6488de92f91c233fdf9f
commit: 333cd3d87e5b9f6b7e6ee2840d30563ec8df9e82 net: dsa: motorcomm: Add LED support
date: 3 days ago
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: x86_64-randconfig-005-20260217 (https://download.01.org/0day-ci/archive/20260903/202609031559.Jj18eJEJ-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260903/202609031559.Jj18eJEJ-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/r/202609031559.Jj18eJEJ-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/dsa/motorcomm/leds.c:350:1: warning: 'yt921x_cled_hw_control_get_device' defined but not used [-Wunused-function]
350 | yt921x_cled_hw_control_get_device(struct led_classdev *led_cdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/yt921x_cled_hw_control_get_device +350 drivers/net/dsa/motorcomm/leds.c
333cd3d87e5b9f6 David Yang 2026-08-31 348
333cd3d87e5b9f6 David Yang 2026-08-31 349 static struct device * __maybe_unused
333cd3d87e5b9f6 David Yang 2026-08-31 @350 yt921x_cled_hw_control_get_device(struct led_classdev *led_cdev)
333cd3d87e5b9f6 David Yang 2026-08-31 351 {
333cd3d87e5b9f6 David Yang 2026-08-31 352 struct yt921x_led *led = to_yt921x_led(led_cdev);
333cd3d87e5b9f6 David Yang 2026-08-31 353 struct yt921x_port *pp = to_yt921x_port(led);
333cd3d87e5b9f6 David Yang 2026-08-31 354 struct yt921x_priv *priv = to_yt921x_priv(pp);
333cd3d87e5b9f6 David Yang 2026-08-31 355 struct dsa_port *dp;
333cd3d87e5b9f6 David Yang 2026-08-31 356
333cd3d87e5b9f6 David Yang 2026-08-31 357 dp = dsa_to_port(&priv->ds, pp->index);
333cd3d87e5b9f6 David Yang 2026-08-31 358 if (!dp)
333cd3d87e5b9f6 David Yang 2026-08-31 359 return NULL;
333cd3d87e5b9f6 David Yang 2026-08-31 360
333cd3d87e5b9f6 David Yang 2026-08-31 361 if (dsa_port_is_user(dp))
333cd3d87e5b9f6 David Yang 2026-08-31 362 return !dp->user ? NULL : &dp->user->dev;
333cd3d87e5b9f6 David Yang 2026-08-31 363 if (dsa_port_is_cpu(dp))
333cd3d87e5b9f6 David Yang 2026-08-31 364 return !dp->conduit ? NULL : &dp->conduit->dev;
333cd3d87e5b9f6 David Yang 2026-08-31 365
333cd3d87e5b9f6 David Yang 2026-08-31 366 return NULL;
333cd3d87e5b9f6 David Yang 2026-08-31 367 }
333cd3d87e5b9f6 David Yang 2026-08-31 368
--
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-09-03 7:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 7:55 drivers/net/dsa/motorcomm/leds.c:350:1: warning: 'yt921x_cled_hw_control_get_device' defined 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.