lkml.org 
[lkml]   [2016]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation
On Fri, Apr 01, 2016 at 12:02:19PM +0530, Laxman Dewangan wrote:
> On Friday 01 April 2016 11:55 AM, kbuild test robot wrote:

> >>>pwm-regulator.c:(.text+0x1728d4): undefined reference to `__umoddi3'
> >>>pwm-regulator.c:(.text+0x1728fd): undefined reference to `__udivdi3'

> Seems build error is coming from logic

> u64 req_period
> unsigned int diff;
> unsigned int period
> unsigned int req_diff

> req_period = req_diff * period;
> if (req_period % diff == 0)

> used u64 to avoid overflow in multiplication.

Yes, you're doing a 64 bit divide so that's kind of expected...
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-04-02 19:01    [W:0.080 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site