From: Simon Kagstrom Date: Tue, 7 Jul 2009 16:29:54 +0200 Subject: [U-Boot] [PATCH 6/8]: Use lldiv to avoid references to __udvidi3 on (at least) ARM In-Reply-To: <200907071620.49252.sr@denx.de> References: <20090707155510.58ae70bb@marrow.netinsight.se> <20090707155956.74ce28d0@marrow.netinsight.se> <200907071620.49252.sr@denx.de> Message-ID: <20090707162954.062edf68@marrow.netinsight.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 7 Jul 2009 16:20:49 +0200 Stefan Roese wrote: > > - ubi->peb_count = ubi->mtd->size / ubi->mtd->erasesize; > > + ubi->peb_count = lldiv(ubi->mtd->size, ubi->mtd->erasesize); > > This rebinds me of a patch I sent a few weeks ago (and forgot to actually push > into u-boot-ubi): > > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/62440 > > I suggest we use my patch version since this brings the u-boot UBI version > back in sync with the Linux version. Agreed! // Simon