Re: [PATCH 5/6] power: supply: max77759: add charger driver
From: Amit Sunil Dhamne
Date: Wed Nov 26 2025 - 17:04:54 EST
On 11/25/25 11:38 PM, kernel test robot wrote:
Hi Amit,I believe this is because of a missing "depends on REGULATOR". Will fix it in the next revision.
kernel test robot noticed the following build errors:
[auto build test ERROR on 39f90c1967215375f7d87b81d14b0f3ed6b40c29]
url: https://github.com/intel-lab-lkp/linux/commits/Amit-Sunil-Dhamne-via-B4-Relay/dt-bindings-power-supply-Add-Maxim-MAX77759-charger/20251123-163840
base: 39f90c1967215375f7d87b81d14b0f3ed6b40c29
patch link: https://lore.kernel.org/r/20251123-max77759-charger-v1-5-6b2e4b8f7f54%40google.com
patch subject: [PATCH 5/6] power: supply: max77759: add charger driver
config: um-randconfig-001-20251126 (https://download.01.org/0day-ci/archive/20251126/202511261521.hSYp4ttf-lkp@xxxxxxxxx/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251126/202511261521.hSYp4ttf-lkp@xxxxxxxxx/reproduce)
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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511261521.hSYp4ttf-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
/usr/bin/ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions
/usr/bin/ld: drivers/power/supply/max77759_charger.o: in function `max77759_charger_probe':
/usr/bin/ld: drivers/power/supply/max77759_charger.o: in function `enable_usb_otg':max77759_charger.c:(.ltext+0x27b): undefined reference to `devm_regulator_register'
/usr/bin/ld: drivers/power/supply/max77759_charger.o: in function `disable_usb_otg':max77759_charger.c:(.ltext+0x983): undefined reference to `rdev_get_drvdata'
max77759_charger.c:(.ltext+0x9c3): undefined reference to `rdev_get_drvdata'
/usr/bin/ld: drivers/power/supply/max77759_charger.o: in function `usb_otg_status':
max77759_charger.c:(.ltext+0xa06): undefined reference to `rdev_get_drvdata'
clang: error: linker command failed with exit code 1 (use -v to see invocation)