Subject: Re: mmotm 2021-01-04-16-56 uploaded (drivers/power/supply/max8997_charger.c)

From: Randy Dunlap <[email-masked]>
Date: Mon, 4 Jan 2021 20:26:04 -0800

On 1/4/21 4:57 PM, [email-masked] wrote:
> The mm-of-the-moment snapshot 2021-01-04-16-56 has been uploaded to
> 
>    https://www.ozlabs.org/~akpm/mmotm/
> 
> mmotm-readme.txt says
> 
> README for mm-of-the-moment:
> 
> https://www.ozlabs.org/~akpm/mmotm/
> 
> This is a snapshot of my -mm patch queue.  Uploaded at random hopefully
> more than once a week.
> 
> You will need quilt to apply these patches to the latest Linus release (5.x
> or 5.x-rcY).  The series file is in broken-out.tar.gz and is duplicated in
> https://ozlabs.org/~akpm/mmotm/series
> 
> The file broken-out.tar.gz contains two datestamp files: .DATE and
> .DATE-yyyy-mm-dd-hh-mm-ss.  Both contain the string yyyy-mm-dd-hh-mm-ss,
> followed by the base kernel version against which this patch series is to
> be applied.
> 
> This tree is partially included in linux-next.  To see which patches are
> included in linux-next, consult the `series' file.  Only the patches
> within the #NEXT_PATCHES_START/#NEXT_PATCHES_END markers are included in
> linux-next.

Hi,
Commit bb118e5178b3 in linux-next seems to introduce a few build problems:

ld: drivers/power/supply/max8997_charger.o: in function `max8997_battery_extcon_evt_worker':
max8997_charger.c:(.text+0xa3): undefined reference to `extcon_get_state'
ld: max8997_charger.c:(.text+0x102): undefined reference to `extcon_get_state'
ld: max8997_charger.c:(.text+0x161): undefined reference to `extcon_get_state'
ld: max8997_charger.c:(.text+0x1c0): undefined reference to `extcon_get_state'
ld: max8997_charger.c:(.text+0x21f): undefined reference to `extcon_get_state'
ld: drivers/power/supply/max8997_charger.o: in function `max8997_battery_probe':
max8997_charger.c:(.text+0x962): undefined reference to `extcon_get_edev_by_phandle'
ld: max8997_charger.c:(.text+0xab0): undefined reference to `devm_extcon_register_notifier_all'

CONFIG_EXTCON=m
CONFIG_CHARGER_MAX8997=y

Full randconfig file is attached.

-- 
~Randy
Reported-by: Randy Dunlap <[email-masked]>