Re: [PATCH v10 06/16] leds: lp50xx: Add the LP50XX family of the RGB LED driver

From: kbuild test robot
Date: Tue Oct 01 2019 - 20:17:43 EST


Hi Dan,

I love your patch! Yet something to improve:

[auto build test ERROR on j.anaszewski-leds/for-next]
[cannot apply to v5.4-rc1 next-20191001]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Dan-Murphy/Multicolor-Framework/20191002-062337
base: https://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git for-next
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/leds/leds-lp50xx.c:358:27: error: initializer element is not constant
.lp50xx_regmap_config = lp5012_regmap_config,
^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-lp50xx.c:358:27: note: (near initialization for 'lp50xx_chip_info_tbl[0].lp50xx_regmap_config')
drivers/leds/leds-lp50xx.c:368:27: error: initializer element is not constant
.lp50xx_regmap_config = lp5012_regmap_config,
^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-lp50xx.c:368:27: note: (near initialization for 'lp50xx_chip_info_tbl[1].lp50xx_regmap_config')
drivers/leds/leds-lp50xx.c:378:27: error: initializer element is not constant
.lp50xx_regmap_config = lp5024_regmap_config,
^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-lp50xx.c:378:27: note: (near initialization for 'lp50xx_chip_info_tbl[2].lp50xx_regmap_config')
drivers/leds/leds-lp50xx.c:388:27: error: initializer element is not constant
.lp50xx_regmap_config = lp5024_regmap_config,
^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-lp50xx.c:388:27: note: (near initialization for 'lp50xx_chip_info_tbl[3].lp50xx_regmap_config')
drivers/leds/leds-lp50xx.c:398:27: error: initializer element is not constant
.lp50xx_regmap_config = lp5036_regmap_config,
^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-lp50xx.c:398:27: note: (near initialization for 'lp50xx_chip_info_tbl[4].lp50xx_regmap_config')
drivers/leds/leds-lp50xx.c:408:27: error: initializer element is not constant
.lp50xx_regmap_config = lp5036_regmap_config,
^~~~~~~~~~~~~~~~~~~~
drivers/leds/leds-lp50xx.c:408:27: note: (near initialization for 'lp50xx_chip_info_tbl[5].lp50xx_regmap_config')

vim +358 drivers/leds/leds-lp50xx.c

348
349 static const struct lp50xx_chip_info lp50xx_chip_info_tbl[] = {
350 [LP5009] = {
351 .model_id = LP5009,
352 .num_leds = LP5009_MAX_LEDS,
353 .led_brightness0_reg = LP5012_LED0_BRT,
354 .mix_out0_reg = LP5012_OUT0_CLR,
355 .bank_brt_reg = LP5012_BNK_BRT,
356 .bank_mix_reg = LP5012_BNKA_CLR,
357 .reset_reg = LP5012_RESET,
> 358 .lp50xx_regmap_config = lp5012_regmap_config,
359 },
360 [LP5012] = {
361 .model_id = LP5012,
362 .num_leds = LP5012_MAX_LEDS,
363 .led_brightness0_reg = LP5012_LED0_BRT,
364 .mix_out0_reg = LP5012_OUT0_CLR,
365 .bank_brt_reg = LP5012_BNK_BRT,
366 .bank_mix_reg = LP5012_BNKA_CLR,
367 .reset_reg = LP5012_RESET,
368 .lp50xx_regmap_config = lp5012_regmap_config,
369 },
370 [LP5018] = {
371 .model_id = LP5018,
372 .num_leds = LP5018_MAX_LEDS,
373 .led_brightness0_reg = LP5024_LED0_BRT,
374 .mix_out0_reg = LP5024_OUT0_CLR,
375 .bank_brt_reg = LP5024_BNK_BRT,
376 .bank_mix_reg = LP5024_BNKA_CLR,
377 .reset_reg = LP5024_RESET,
378 .lp50xx_regmap_config = lp5024_regmap_config,
379 },
380 [LP5024] = {
381 .model_id = LP5024,
382 .num_leds = LP5024_MAX_LEDS,
383 .led_brightness0_reg = LP5024_LED0_BRT,
384 .mix_out0_reg = LP5024_OUT0_CLR,
385 .bank_brt_reg = LP5024_BNK_BRT,
386 .bank_mix_reg = LP5024_BNKA_CLR,
387 .reset_reg = LP5024_RESET,
388 .lp50xx_regmap_config = lp5024_regmap_config,
389 },
390 [LP5030] = {
391 .model_id = LP5030,
392 .num_leds = LP5030_MAX_LEDS,
393 .led_brightness0_reg = LP5036_LED0_BRT,
394 .mix_out0_reg = LP5036_OUT0_CLR,
395 .bank_brt_reg = LP5036_BNK_BRT,
396 .bank_mix_reg = LP5036_BNKA_CLR,
397 .reset_reg = LP5036_RESET,
398 .lp50xx_regmap_config = lp5036_regmap_config,
399 },
400 [LP5036] = {
401 .model_id = LP5036,
402 .num_leds = LP5036_MAX_LEDS,
403 .led_brightness0_reg = LP5036_LED0_BRT,
404 .mix_out0_reg = LP5036_OUT0_CLR,
405 .bank_brt_reg = LP5036_BNK_BRT,
406 .bank_mix_reg = LP5036_BNKA_CLR,
407 .reset_reg = LP5036_RESET,
408 .lp50xx_regmap_config = lp5036_regmap_config,
409 },
410 };
411

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip