Bug 206933

Summary: Cannot build with LEDS_LM3532
Product: Drivers Reporter: Louis Leseur (louis.leseur)
Component: OtherAssignee: drivers_other
Status: NEW ---    
Severity: low CC: louis.leseur
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.5.6-5.5.11 Subsystem:
Regression: No Bisected commit-id:
Attachments: Full build log
Patch adding REGMAP_I2C

Description Louis Leseur 2020-03-24 04:55:12 UTC
Created attachment 288027 [details]
Full build log

Hello,

I cannot build kernel 5.5.6 and after (tested on 5.5.8 and 5.5.11) with LEDS_LM3532.

Build error:
  LD      .tmp_vmlinux1
ld: drivers/leds/leds-lm3532.o: in function `lm3532_probe':
leds-lm3532.c:(.text+0x2d2): undefined reference to `__devm_regmap_init_i2c'
make: *** [Makefile:1078: vmlinux] Error 1

Config is defconfig with CONFIG_LEDS_LM3532 enabled.

Kernel 5.5.5 and before builds ok.

Regards
Comment 1 Louis Leseur 2020-03-24 04:58:40 UTC
Created attachment 288029 [details]
Patch adding REGMAP_I2C

The problem seems to be resolved when I add "depends on REGMAP_I2C" in the leds Kconfig for LEDS_LM3532.