From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbcDBQxU (ORCPT ); Sat, 2 Apr 2016 12:53:20 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:38272 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751299AbcDBQxT (ORCPT ); Sat, 2 Apr 2016 12:53:19 -0400 Date: Sat, 2 Apr 2016 09:53:11 -0700 From: Mark Brown To: Laxman Dewangan Cc: kbuild test robot , kbuild-all@01.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Lee Jones Message-ID: <20160402165311.GF2350@sirena.org.uk> References: <201604011425.40GkbuYp%fengguang.wu@intel.com> <56FE15F3.3060805@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VvwS7Fyc3fvERiQe" Content-Disposition: inline In-Reply-To: <56FE15F3.3060805@nvidia.com> X-Cookie: If anything can go wrong, it will. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 216.2.64.20 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] regulator: pwm: Try to avoid voltage error in duty cycle calculation X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VvwS7Fyc3fvERiQe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 =3D req_diff * period; > if (req_period % diff =3D=3D 0) > used u64 to avoid overflow in multiplication. Yes, you're doing a 64 bit divide so that's kind of expected... =20 --VvwS7Fyc3fvERiQe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW//j2AAoJECTWi3JdVIfQ3iwH/3Fld6EFvBHXyeoGZwyhHDfQ RWK2hmPYF4DjqPAo1nxjgBWUkiq/yzkSb9zqFqRwqmQqoAaGIp8q/Okhk2dPp3OJ 71zwTTeZ8oZ9FG/gN8Be3VuRvIp/aD5JDWuW9j3zuUG9N2nS5Ayiy0CLD8cFJuv1 /x04vX+N7juTUCdN1orBziAT+vvYmrFvMYzP229kqcr2EWYvpPicj8RCcqOih8zt WPZJ3KIKcnSrUAHfYAaEeXkbSmr/P7IOSsZfLpkA+XEp/jzlfSr4YVm3jTQ2gldB XuQJ0ZBSvrXqPuNHZKVVfJg0XJUKYo3c7d7z8acbo2iW77l+EF/JsQAsAK8YJ/4= =FElI -----END PGP SIGNATURE----- --VvwS7Fyc3fvERiQe--