Re: [PATCH 2/4] video: backlight: Add Awinic AW99703
From: kernel test robot
Date: Tue Dec 01 2026 - 01:35:29 EST
Hi Andreas,
kernel test robot noticed the following build warnings:
[auto build test WARNING on b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f]
url: https://github.com/intel-lab-lkp/linux/commits/Andreas-Kemnade/dt-bindings-leds-backlight-Add-Awinic-AW99703-backlight/20261130-200807
base: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
patch link: https://lore.kernel.org/r/20261130-bl-aw99703-upstr-v1-2-986a15505ad7%40kemnade.info
patch subject: [PATCH 2/4] video: backlight: Add Awinic AW99703
config: sparc-randconfig-1000-20261201 (https://download.01.org/0day-ci/archive/20261201/20261201142448.WLRU9hnS-lkp@xxxxxxxxx/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261201/20261201142448.WLRU9hnS-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261201142448.WLRU9hnS-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> drivers/video/backlight/aw99703.c:419:12: warning: 'aw99703_runtime_resume' defined but not used [-Wunused-function]
static int aw99703_runtime_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~
>> drivers/video/backlight/aw99703.c:399:12: warning: 'aw99703_runtime_suspend' defined but not used [-Wunused-function]
static int aw99703_runtime_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~
vim +/aw99703_runtime_resume +419 drivers/video/backlight/aw99703.c
398
> 399 static int aw99703_runtime_suspend(struct device *dev)
400 {
401 struct aw99703_data *drvdata = dev_get_drvdata(dev);
402 int ret;
403
404 aw99703_set_work_mode(drvdata, 0);
405
406 ret = gpiod_set_value_cansleep(drvdata->hwen_gpio, 0);
407 if (ret < 0)
408 return ret;
409
410 ret = regulator_disable(drvdata->vin);
411 if (ret < 0) {
412 ret = gpiod_set_value_cansleep(drvdata->hwen_gpio, 1);
413 return ret;
414 }
415
416 return 0;
417 }
418
> 419 static int aw99703_runtime_resume(struct device *dev)
420 {
421 struct aw99703_data *drvdata = dev_get_drvdata(dev);
422 int ret;
423
424 ret = regulator_enable(drvdata->vin);
425 if (ret < 0)
426 return ret;
427
428 ret = gpiod_set_value_cansleep(drvdata->hwen_gpio, 1);
429 if (ret < 0) {
430 ret = regulator_disable(drvdata->vin);
431 return ret;
432 }
433
434 usleep_range(250, 1000);
435
436 aw99703_backlight_init(drvdata);
437 aw99703_set_brightness(drvdata, drvdata->brightness);
438 return 0;
439 }
440
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki