From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6437009597815602002==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH V3 2/2] rtc: zynqmp: Add calibration set and get support Date: Tue, 30 Nov 2021 17:15:57 +0800 Message-ID: <202111301703.oeV6PbAf-lkp@intel.com> In-Reply-To: <20211130055541.2789-2-srinivas.neeli@xilinx.com> List-Id: --===============6437009597815602002== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Srinivas, I love your patch! Yet something to improve: [auto build test ERROR on abelloni/rtc-next] [also build test ERROR on v5.16-rc3 next-20211129] [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/Srinivas-Neeli/dt-bindings= -rtc-zynqmp-Add-clock-information/20211130-135800 base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git = rtc-next config: i386-randconfig-a005-20211130 (https://download.01.org/0day-ci/arch= ive/20211130/202111301703.oeV6PbAf-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/41ffd7c6e4799c865a4b74130= d1bf5db3cfb85f7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Srinivas-Neeli/dt-bindings-rtc-zyn= qmp-Add-clock-information/20211130-135800 git checkout 41ffd7c6e4799c865a4b74130d1bf5db3cfb85f7 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): ld: drivers/rtc/rtc-zynqmp.o: in function `xlnx_rtc_read_offset': >> drivers/rtc/rtc-zynqmp.c:180: undefined reference to `__divdi3' ld: drivers/rtc/rtc-zynqmp.o: in function `xlnx_rtc_set_offset': drivers/rtc/rtc-zynqmp.c:205: undefined reference to `__divdi3' vim +180 drivers/rtc/rtc-zynqmp.c 175 = 176 static int xlnx_rtc_read_offset(struct device *dev, long *offset) 177 { 178 struct xlnx_rtc_dev *xrtcdev =3D dev_get_drvdata(dev); 179 long offset_val =3D 0; > 180 unsigned int tick_mult =3D RTC_PPB / xrtcdev->freq; 181 unsigned int calibval; 182 = 183 calibval =3D readl(xrtcdev->reg_base + RTC_CALIB_RD); 184 /* Offset with seconds ticks */ 185 offset_val =3D calibval & RTC_TICK_MASK; 186 offset_val =3D offset_val - RTC_CALIB_DEF; 187 offset_val =3D offset_val * tick_mult; 188 = 189 /* Offset with fractional ticks */ 190 if (calibval & RTC_FR_EN) 191 offset_val +=3D ((calibval & RTC_FR_MASK) >> RTC_FR_DATSHIFT) 192 * (tick_mult / RTC_FR_MAX_TICKS); 193 *offset =3D offset_val; 194 = 195 return 0; 196 } 197 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6437009597815602002==--