On Thu, 31 Dec 2020 07:22:22 +0800, kernel test robot wrote:
> Hi Timon,
> Thank you for the patch! Yet something to improve:
> [auto build test ERROR on regulator/for-next]
> [also build test ERROR on pinctrl-samsung/for-next krzk/for-next v5.11-rc1
> [cannot apply to robh/for-next]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git
> config: arm-randconfig-r004-20201230 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project
> reproduce (this is a W=1 build):
> chmod +x ~/bin/make.cross
> # install arm cross compiling tool for clang build
> # apt-get install binutils-arm-linux-gnueabi
> git remote add linux-review https://github.com/0day-ci/linux
> git fetch --no-tags linux-review
> git checkout 3a597219bbfc1f9a0b65b9662b7b95bbb7cf728f
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp(a)intel.com>
> All errors (new ones prefixed by >>):
> >> drivers/power/supply/max8997_charger.c:261:9: error: implicit declaration
of function 'devm_extcon_register_notifier_all'
> ret = devm_extcon_register_notifier_all(&pdev->dev,
> drivers/power/supply/max8997_charger.c:261:9: note: did you mean
> include/linux/extcon.h:263:19: note: 'devm_extcon_register_notifier'
> static inline int devm_extcon_register_notifier(struct device *dev,
> 1 error generated.
This is failing because CONFIG_EXTCON is not set and *_all() don't have
stub implementations in extcon.h. Should I add a fix for it in this
It is not problem of your patchset, so up to you. After your changes
the driver still can work fine without CONFIG_EXTCON and CONFIG_REGULATOR.