From: kernel test robot <lkp@intel.com>
To: Kate Hsuan <hpa@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-input@vger.kernel.org,
Jiri Kosina <jikos@kernel.org>,
Hans de Goede <hdegoede@redhat.com>
Subject: [hid:for-6.15/logitech 1/1] drivers/hid/hid-lg-g15.c:241:undefined reference to `led_mc_calc_color_components'
Date: Tue, 11 Feb 2025 00:16:12 +0800 [thread overview]
Message-ID: <202502110032.VZ0J024X-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.15/logitech
head: a3a064146c507ee5207dcf7223cd7a3d7864e085
commit: a3a064146c507ee5207dcf7223cd7a3d7864e085 [1/1] HID: hid-lg-g15: Use standard multicolor LED API
config: powerpc-ppc6xx_defconfig (https://download.01.org/0day-ci/archive/20250211/202502110032.VZ0J024X-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250211/202502110032.VZ0J024X-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/202502110032.VZ0J024X-lkp@intel.com/
All errors (new ones prefixed by >>):
powerpc-linux-ld: drivers/hid/hid-lg-g15.o: in function `lg_g510_kbd_led_write':
>> drivers/hid/hid-lg-g15.c:241:(.text+0x768): undefined reference to `led_mc_calc_color_components'
powerpc-linux-ld: drivers/hid/hid-lg-g15.o: in function `lg_g15_register_led':
>> drivers/hid/hid-lg-g15.c:686:(.text+0xa9c): undefined reference to `devm_led_classdev_multicolor_register_ext'
vim +241 drivers/hid/hid-lg-g15.c
232
233 /* Must be called with g15->mutex locked */
234 static int lg_g510_kbd_led_write(struct lg_g15_data *g15,
235 struct lg_g15_led *g15_led,
236 enum led_brightness brightness)
237 {
238 struct mc_subled *subleds = g15_led->mcdev.subled_info;
239 int ret;
240
> 241 led_mc_calc_color_components(&g15_led->mcdev, brightness);
242
243 g15->transfer_buf[0] = 5 + g15_led->led;
244 g15->transfer_buf[1] = subleds[0].brightness;
245 g15->transfer_buf[2] = subleds[1].brightness;
246 g15->transfer_buf[3] = subleds[2].brightness;
247
248 ret = hid_hw_raw_request(g15->hdev,
249 LG_G510_FEATURE_BACKLIGHT_RGB + g15_led->led,
250 g15->transfer_buf, 4,
251 HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
252 if (ret == 4) {
253 /* Success */
254 g15_led->brightness = brightness;
255 ret = 0;
256 } else {
257 hid_err(g15->hdev, "Error setting LED brightness: %d\n", ret);
258 ret = (ret < 0) ? ret : -EIO;
259 }
260
261 return ret;
262 }
263
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-10 16:16 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=202502110032.VZ0J024X-lkp@intel.com \
--to=lkp@intel.com \
--cc=hdegoede@redhat.com \
--cc=hpa@redhat.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--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.