Hi Hans, I love your patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on rafael-pm/linux-next linus/master v5.15-rc7] [cannot apply to broonie-regulator/for-next next-20211026] [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] url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/Add-support-for-X86-ACPI-camera-sensor-PMIC-setup-with-clk-and-regulator-platform-data/20211025-174519 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next config: hexagon-randconfig-r032-20211027 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/9e391d80739a2e630f2a50be79bf4d09b3c9f1bb git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Hans-de-Goede/Add-support-for-X86-ACPI-camera-sensor-PMIC-setup-with-clk-and-regulator-platform-data/20211025-174519 git checkout 9e391d80739a2e630f2a50be79bf4d09b3c9f1bb # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/regulator/tps68470-regulator.c:58:5: warning: no previous prototype for function 'tps68470_regulator_enable' [-Wmissing-prototypes] int tps68470_regulator_enable(struct regulator_dev *rdev) ^ drivers/regulator/tps68470-regulator.c:58:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int tps68470_regulator_enable(struct regulator_dev *rdev) ^ static >> drivers/regulator/tps68470-regulator.c:75:5: warning: no previous prototype for function 'tps68470_regulator_disable' [-Wmissing-prototypes] int tps68470_regulator_disable(struct regulator_dev *rdev) ^ drivers/regulator/tps68470-regulator.c:75:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int tps68470_regulator_disable(struct regulator_dev *rdev) ^ static 2 warnings generated. vim +/tps68470_regulator_enable +58 drivers/regulator/tps68470-regulator.c 57 > 58 int tps68470_regulator_enable(struct regulator_dev *rdev) 59 { 60 struct tps68470_regulator_data *data = rdev->reg_data; 61 int ret; 62 63 /* The Core buck regulator needs the PMIC's PLL to be enabled */ 64 if (rdev->desc->id == TPS68470_CORE) { 65 ret = clk_prepare_enable(data->clk); 66 if (ret) { 67 dev_err(&rdev->dev, "Error enabling TPS68470 clock\n"); 68 return ret; 69 } 70 } 71 72 return regulator_enable_regmap(rdev); 73 } 74 > 75 int tps68470_regulator_disable(struct regulator_dev *rdev) 76 { 77 struct tps68470_regulator_data *data = rdev->reg_data; 78 79 if (rdev->desc->id == TPS68470_CORE) 80 clk_disable_unprepare(data->clk); 81 82 return regulator_disable_regmap(rdev); 83 } 84 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip