Re: [PATCH] iio: adc: ltc2485: add support for Linear Technology LTC2485 ADC

From: Alison Schofield
Date: Tue Aug 23 2016 - 19:24:04 EST


On Tue, Aug 23, 2016 at 06:27:58PM +0800, kbuild test robot wrote:
> Hi Alison,
>
> [auto build test ERROR on iio/togreg]
> [also build test ERROR on v4.8-rc3 next-20160823]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> [Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
> [Check https://git-scm.com/docs/git-format-patch for more information]
>
> url: https://github.com/0day-ci/linux/commits/Alison-Schofield/iio-adc-ltc2485-add-support-for-Linear-Technology-LTC2485-ADC/20160823-112916
> base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
> config: i386-allyesconfig (attached as .config)
> compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All errors (new ones prefixed by >>):
>
> drivers/built-in.o: In function `ltc2485_read_raw':
> >> ltc2485.c:(.text+0x2795c3b): undefined reference to `__divdi3'
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation

This is in the timestamp comparison code. I guess I could use a
do_div macro to perform the task. However, now that I've stared
the code a bit more, it doesn't need to be real time and in fact
it would be better/safer to use monotonic time. So, I'll change
to monotonic time and use the ktime_t macros to manipulate.

Thanks kbuild robot for finding this immediately!!
alisons