[U-Boot] Temporary patch for missing _udivdi3 in fs/yaffs2/yaffscfg.c

I don't know if this is the correct way to submit a patch or not. If not, please accept my apologies. This gets past the missing _udivid3 issue, but is not the correct way, long-term. diff --git a/fs/yaffs2/yaffscfg.c b/fs/yaffs2/yaffscfg.c index 16e84a4..25a43aa 100644 --- a/fs/yaffs2/yaffscfg.c +++ b/fs/yaffs2/yaffscfg.c @@ -22,6 +22,7 @@ #include <common.h>
#include <config.h> +#include <div64.h> #include "nand.h" #include "yaffscfg.h" #include "yaffsfs.h" @@ -182,7 +183,7 @@ int yaffs_StartUp(void) flashDev->nDataBytesPerChunk = mtd->oobblock; flashDev->nChunksPerBlock = mtd->erasesize / mtd->oobblock; #endif - nBlocks = mtd->size / mtd->erasesize; + nBlocks = lldiv (mtd->size, mtd->erasesize);
flashDev->nCheckpointReservedBlocks = 10; flashDev->startBlock = 0;

Dear "J.C. Wren",
In message 17434f2e0907311600v1ba9cf2eoa2a9c37ed2d91fd8@mail.gmail.com you wrote:
I don't know if this is the correct way to submit a patch or not. If not, please accept my apologies. This gets past the missing _udivid3 issue, but is not the correct way, long-term.
I think we can close this, as I consider it fixed with the pending libgcc fixes which I will commit later tonight.
Best regards,
Wolfgang Denk
participants (2)
-
J.C. Wren
-
Wolfgang Denk