lkml.org 
[lkml]   [2021]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next] ptp: clockmatrix: use rsmu driver to access i2c/spi bus
On Thu, 23 Sep 2021 19:49:56 +0000 Min Li wrote:
> > > I did build it through 32 bit arm and didn't get the problem.
> > >
> > > make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
> >
> > We're testing x86, maybe arm32 can handle 64bit divisions natively?
> >
> > ERROR: modpost: "__divdi3" [drivers/ptp/ptp_clockmatrix.ko] undefined!
> > ERROR: modpost: "__udivdi3" [drivers/ptp/ptp_clockmatrix.ko] undefined!
>
> Hi Jakub
>
> I tried "make ARCH=i386" but it also passed on my machine. Can you tell me how to
> reproduce this? Thanks

Hm, are you sure the config does not have CONFIG_64BIT=y ? Getting this
right can be tricky, here is the script which patchwork runs, FWIW:

https://github.com/kuba-moo/nipa/blob/master/tests/patch/build_32bit/build_32bit.sh

There is a small chance it's a glitch in the test system, but seems
unlikely, this looks like a 64b divide:

+static u32 idtcm_get_dco_delay(struct idtcm_channel *channel)
...
+ u64 m;
+ u16 n;
...
+ fodFreq = m / n;
...
+ return 18 * (u64)NSEC_PER_SEC / fodFreq;

\
 
 \ /
  Last update: 2021-09-23 22:06    [W:0.061 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site