Bug 206933 - Cannot build with LEDS_LM3532
Summary: Cannot build with LEDS_LM3532
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 low
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-24 04:55 UTC by Louis Leseur
Modified: 2020-03-24 12:54 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.5.6-5.5.11
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Full build log (113.66 KB, text/plain)
2020-03-24 04:55 UTC, Louis Leseur
Details
Patch adding REGMAP_I2C (416 bytes, patch)
2020-03-24 04:58 UTC, Louis Leseur
Details | Diff

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.

Note You need to log in before you can comment on or make changes to this bug.