From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Tue, 7 Jul 2009 16:20:49 +0200 Subject: [U-Boot] [PATCH 6/8]: Use lldiv to avoid references to __udvidi3 on (at least) ARM In-Reply-To: <20090707155956.74ce28d0@marrow.netinsight.se> References: <20090707155510.58ae70bb@marrow.netinsight.se> <20090707155956.74ce28d0@marrow.netinsight.se> Message-ID: <200907071620.49252.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Tuesday 07 July 2009 15:59:56 Simon Kagstrom wrote: > Signed-off-by: Simon Kagstrom > --- > drivers/mtd/ubi/build.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c > index 4f50b2d..d676573 100644 > --- a/drivers/mtd/ubi/build.c > +++ b/drivers/mtd/ubi/build.c > @@ -536,7 +536,7 @@ static int io_init(struct ubi_device *ubi) > */ > > ubi->peb_size = ubi->mtd->erasesize; > - 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. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================