All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: Re: [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver
Date: Fri, 13 Jun 2025 22:50:47 +0800	[thread overview]
Message-ID: <202506132206.dBqw1BIJ-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20250610174319.183375-4-trannamatk@gmail.com>
References: <20250610174319.183375-4-trannamatk@gmail.com>
TO: Nam Tran <trannamatk@gmail.com>
TO: lee@kernel.org
CC: pavel@kernel.org
CC: krzk+dt@kernel.org
CC: robh@kernel.org
CC: conor+dt@kernel.org
CC: corbet@lwn.net
CC: linux-leds@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-doc@vger.kernel.org
CC: Nam Tran <trannamatk@gmail.com>

Hi Nam,

kernel test robot noticed the following build warnings:

[auto build test WARNING on f09079bd04a924c72d555cd97942d5f8d7eca98c]

url:    https://github.com/intel-lab-lkp/linux/commits/Nam-Tran/dt-bindings-leds-add-TI-National-Semiconductor-LP5812-LED-Driver/20250611-100314
base:   f09079bd04a924c72d555cd97942d5f8d7eca98c
patch link:    https://lore.kernel.org/r/20250610174319.183375-4-trannamatk%40gmail.com
patch subject: [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: powerpc-randconfig-r072-20250613 (https://download.01.org/0day-ci/archive/20250613/202506132206.dBqw1BIJ-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202506132206.dBqw1BIJ-lkp@intel.com/

smatch warnings:
drivers/leds/rgb/leds-lp5812.c:827 lp5812_multicolor_brightness() error: uninitialized symbol 'ret'.

vim +/ret +827 drivers/leds/rgb/leds-lp5812.c

8089ca4ee5bd17 Nam Tran 2025-06-11  812  
8089ca4ee5bd17 Nam Tran 2025-06-11  813  static int lp5812_multicolor_brightness(struct lp5812_led *led)
8089ca4ee5bd17 Nam Tran 2025-06-11  814  {
8089ca4ee5bd17 Nam Tran 2025-06-11  815  	struct lp5812_chip *chip = led->chip;
8089ca4ee5bd17 Nam Tran 2025-06-11  816  	int ret, i;
8089ca4ee5bd17 Nam Tran 2025-06-11  817  
8089ca4ee5bd17 Nam Tran 2025-06-11  818  	guard(mutex)(&chip->lock);
8089ca4ee5bd17 Nam Tran 2025-06-11  819  	for (i = 0; i < led->mc_cdev.num_colors; i++) {
8089ca4ee5bd17 Nam Tran 2025-06-11  820  		ret = lp5812_manual_dc_pwm_control(chip, led->mc_cdev.subled_info[i].channel,
8089ca4ee5bd17 Nam Tran 2025-06-11  821  						   led->mc_cdev.subled_info[i].brightness,
8089ca4ee5bd17 Nam Tran 2025-06-11  822  						   LP5812_DIMMING_PWM);
8089ca4ee5bd17 Nam Tran 2025-06-11  823  		if (ret)
8089ca4ee5bd17 Nam Tran 2025-06-11  824  			break;
8089ca4ee5bd17 Nam Tran 2025-06-11  825  	}
8089ca4ee5bd17 Nam Tran 2025-06-11  826  
8089ca4ee5bd17 Nam Tran 2025-06-11 @827  	return ret;
8089ca4ee5bd17 Nam Tran 2025-06-11  828  }
8089ca4ee5bd17 Nam Tran 2025-06-11  829  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2025-06-13 14:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-13 14:50 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-10 17:43 [PATCH v9 0/4] leds: add new LED driver for TI LP5812 Nam Tran
2025-06-10 17:43 ` [PATCH v9 2/4] leds: add TI/National Semiconductor LP5812 LED Driver Nam Tran
2025-06-10 18:13   ` Randy Dunlap
2025-06-17 16:50     ` Nam Tran
2025-06-10 21:07   ` Christophe JAILLET
2025-06-17 17:30     ` Nam Tran
2025-06-16 18:37   ` kernel test robot

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=202506132206.dBqw1BIJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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.