From: kernel test robot <lkp@intel.com>
To: Nam Tran <trannamatk@gmail.com>, lee@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, pavel@kernel.org,
rdunlap@infradead.org, christophe.jaillet@wanadoo.fr,
krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org,
corbet@lwn.net, linux-leds@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org, Nam Tran <trannamatk@gmail.com>
Subject: Re: [PATCH v12 2/4] leds: add basic support for TI/National Semiconductor LP5812 LED Driver
Date: Tue, 29 Jul 2025 07:36:50 +0800 [thread overview]
Message-ID: <202507290749.YxykcKRV-lkp@intel.com> (raw)
In-Reply-To: <20250728065814.120769-3-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/20250728-150224
base: f09079bd04a924c72d555cd97942d5f8d7eca98c
patch link: https://lore.kernel.org/r/20250728065814.120769-3-trannamatk%40gmail.com
patch subject: [PATCH v12 2/4] leds: add basic support for TI/National Semiconductor LP5812 LED Driver
config: hexagon-randconfig-r073-20250729 (https://download.01.org/0day-ci/archive/20250729/202507290749.YxykcKRV-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1b4db78d2eaa070b3f364a2d2b2b826a5439b892)
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/202507290749.YxykcKRV-lkp@intel.com/
New smatch warnings:
drivers/leds/rgb/leds-lp5812.c:920 lp5812_probe() warn: inconsistent indenting
Old smatch warnings:
drivers/leds/rgb/leds-lp5812.c:467 lp5812_multicolor_brightness() error: uninitialized symbol 'ret'.
vim +920 drivers/leds/rgb/leds-lp5812.c
903
904 static int lp5812_probe(struct i2c_client *client)
905 {
906 struct lp5812_chip *chip;
907 struct device_node *np = dev_of_node(&client->dev);
908 struct lp5812_led *led;
909 int ret;
910
911 if (!np)
912 return -EINVAL;
913
914 chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL);
915 if (!chip)
916 return -ENOMEM;
917
918 chip->cfg = i2c_get_match_data(client);
919 ret = lp5812_of_populate_pdata(&client->dev, np, chip);
> 920 if (ret)
921 return ret;
922
923 led = devm_kcalloc(&client->dev, chip->num_channels, sizeof(*led), GFP_KERNEL);
924 if (!led)
925 return -ENOMEM;
926
927 chip->client = client;
928 mutex_init(&chip->lock);
929 i2c_set_clientdata(client, led);
930
931 ret = lp5812_init_device(chip);
932 if (ret)
933 return ret;
934
935 ret = lp5812_register_leds(led, chip);
936 if (ret)
937 goto err_out;
938
939 ret = lp5812_register_sysfs(chip);
940 if (ret)
941 goto err_out;
942
943 return 0;
944
945 err_out:
946 lp5812_deinit_device(chip);
947 return ret;
948 }
949
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-07-28 23:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-28 6:58 [PATCH v12 0/4] leds: add new LED driver for TI LP5812 Nam Tran
2025-07-28 6:58 ` [PATCH v12 1/4] dt-bindings: leds: add TI/National Semiconductor LP5812 LED Driver Nam Tran
2025-07-28 6:58 ` [PATCH v12 2/4] leds: add basic support for " Nam Tran
2025-07-28 23:36 ` kernel test robot [this message]
2025-07-29 6:40 ` Krzysztof Kozlowski
2025-07-30 4:08 ` [PATCH v11 " Nam Tran
2025-07-28 6:58 ` [PATCH v12 3/4] docs: ABI: Document LP5812 LED sysfs interfaces Nam Tran
2025-07-28 6:58 ` [PATCH v12 4/4] docs: leds: Document TI LP5812 LED driver Nam Tran
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=202507290749.YxykcKRV-lkp@intel.com \
--to=lkp@intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pavel@kernel.org \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=trannamatk@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®