Hi ChiaEn, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on sre-power-supply/for-next] [also build test WARNING on robh/for-next linus/master v6.0-rc7 next-20220929] [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 https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/ChiaEn-Wu/Add-Richtek-RT9467-5A-Battery-Charger-support/20220929-183906 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next config: x86_64-allyesconfig compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/042b1a763ec2948a412ff2a7fa500b98aace9923 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review ChiaEn-Wu/Add-Richtek-RT9467-5A-Battery-Charger-support/20220929-183906 git checkout 042b1a763ec2948a412ff2a7fa500b98aace9923 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/power/supply/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/power/supply/rt9467-charger.c: In function 'rt9467_get_adc_raw_data': drivers/power/supply/rt9467-charger.c:436:43: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration] 436 | reg_val = RT9467_MASK_ADC_START | FIELD_PREP(RT9467_MASK_ADC_IN_SEL, adc_sel); | ^~~~~~~~~~ At top level: >> drivers/power/supply/rt9467-charger.c:256:26: warning: 'rt9467_port_stat_names' defined but not used [-Wunused-const-variable=] 256 | static const char *const rt9467_port_stat_names[RT9467_CHG_TYPE_MAX] = { | ^~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/rt9467_port_stat_names +256 drivers/power/supply/rt9467-charger.c 255 > 256 static const char *const rt9467_port_stat_names[RT9467_CHG_TYPE_MAX] = { 257 [RT9467_CHG_TYPE_NOVBUS] = "No Vbus", 258 [RT9467_CHG_TYPE_UNDER_GOING] = "Under Going", 259 [RT9467_CHG_TYPE_SDP] = "SDP", 260 [RT9467_CHG_TYPE_SDPNSTD] = "SDPNSTD", 261 [RT9467_CHG_TYPE_DCP] = "DCP", 262 [RT9467_CHG_TYPE_CDP] = "CDP", 263 }; 264 -- 0-DAY CI Kernel Test Service https://01.org/lkp