Content-Type: multipart/mixed; boundary="===============3377222846466525830==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 1/2] THERMAL: Add THERMAL driver for Sunplus SP7021 Date: Thu, 30 Dec 2021 00:27:11 +0800 Message-ID: <202112300008.jdRkNNeV-lkp@intel.com> In-Reply-To: List-Id: --===============3377222846466525830== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Li-hao, I love your patch! Perhaps something to improve: [auto build test WARNING on rafael-pm/thermal] [also build test WARNING on linus/master v5.16-rc7 next-20211224] [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/Li-hao-Kuo/Add-THERMAL-con= trol-driver-for-Sunplus-SP7021-SoC/20211223-130720 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git= thermal config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20211230/2= 02112300008.jdRkNNeV-lkp(a)intel.com/config) compiler: sh4-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/99e97d44b9115aad59fc953c2= 945c7cbda1d57bb git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Li-hao-Kuo/Add-THERMAL-control-dri= ver-for-Sunplus-SP7021-SoC/20211223-130720 git checkout 99e97d44b9115aad59fc953c2945c7cbda1d57bb # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dsh SHELL=3D/bin/bash drivers/thermal/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/thermal/sunplus_thermal.c:44:7: warning: no previous prototype f= or 'sp7021_otp_coef_read' [-Wmissing-prototypes] 44 | char *sp7021_otp_coef_read(struct device *dev, ssize_t *len) | ^~~~~~~~~~~~~~~~~~~~ vim +/sp7021_otp_coef_read +44 drivers/thermal/sunplus_thermal.c 43 = > 44 char *sp7021_otp_coef_read(struct device *dev, ssize_t *len) 45 { 46 char *ret =3D NULL; 47 struct nvmem_cell *c =3D nvmem_cell_get(dev, "therm_calib"); 48 = 49 if (IS_ERR_OR_NULL(c)) { 50 dev_err(dev, "OTP read failure:%ld", PTR_ERR(c)); 51 return NULL; 52 } 53 ret =3D nvmem_cell_read(c, len); 54 nvmem_cell_put(c); 55 dev_dbg(dev, "%d bytes read from OTP", *len); 56 return ret; 57 } 58 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3377222846466525830==--