[U-Boot] [PATCH 6/8]: Use lldiv to avoid references to __udvidi3 on (at least) ARM

Stefan Roese sr at denx.de
Tue Jul 7 16:20:49 CEST 2009


Hi Simon,

On Tuesday 07 July 2009 15:59:56 Simon Kagstrom wrote:
> Signed-off-by: Simon Kagstrom <simon.kagstrom at netinsight.net>
> ---
>  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
=====================================================================


More information about the U-Boot mailing list