public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] fs: zfs: fix illegal use of fp
@ 2012-10-31 18:21 Alejandro Mery
  2012-11-01  9:56 ` Stefan Roese
  2012-11-14 12:25 ` Anatolij Gustschin
  0 siblings, 2 replies; 3+ messages in thread
From: Alejandro Mery @ 2012-10-31 18:21 UTC (permalink / raw)
  To: u-boot

the upcoming sunxi (allwinner a10/a13) platform enables zfs
by default, and using linaro's hf -msoft-float makes the build
fail because this u64 division.

Signed-off-by: Alejandro Mery <amery@geeks.cl>
---
 fs/zfs/zfs.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/zfs/zfs.c b/fs/zfs/zfs.c
index 360f723..ff857ae 100644
--- a/fs/zfs/zfs.c
+++ b/fs/zfs/zfs.c
@@ -30,6 +30,7 @@
 #include <linux/ctype.h>
 #include <asm/byteorder.h>
 #include "zfs_common.h"
+#include "div64.h"
 
 block_dev_desc_t *zfs_dev_desc;
 
@@ -2158,7 +2159,8 @@ zfs_read(zfs_file_t file, char *buf, uint64_t len)
 		/*
 		 * Find requested blkid and the offset within that block.
 		 */
-		uint64_t blkid = (file->offset + red) /	 blksz;
+		uint64_t blkid = file->offset + red;
+		blkid = do_div(blkid, blksz);
 		free(data->file_buf);
 		data->file_buf = 0;
 
-- 
1.7.12.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] fs: zfs: fix illegal use of fp
  2012-10-31 18:21 [U-Boot] [PATCH] fs: zfs: fix illegal use of fp Alejandro Mery
@ 2012-11-01  9:56 ` Stefan Roese
  2012-11-14 12:25 ` Anatolij Gustschin
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2012-11-01  9:56 UTC (permalink / raw)
  To: u-boot

On 10/31/2012 07:21 PM, Alejandro Mery wrote:
> the upcoming sunxi (allwinner a10/a13) platform enables zfs
> by default, and using linaro's hf -msoft-float makes the build
> fail because this u64 division.
> 
> Signed-off-by: Alejandro Mery <amery@geeks.cl>

Acked-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] fs: zfs: fix illegal use of fp
  2012-10-31 18:21 [U-Boot] [PATCH] fs: zfs: fix illegal use of fp Alejandro Mery
  2012-11-01  9:56 ` Stefan Roese
@ 2012-11-14 12:25 ` Anatolij Gustschin
  1 sibling, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2012-11-14 12:25 UTC (permalink / raw)
  To: u-boot

Hi,

On Wed, 31 Oct 2012 19:21:33 +0100
Alejandro Mery <amery@geeks.cl> wrote:

> the upcoming sunxi (allwinner a10/a13) platform enables zfs
> by default, and using linaro's hf -msoft-float makes the build
> fail because this u64 division.
> 
> Signed-off-by: Alejandro Mery <amery@geeks.cl>
> ---
>  fs/zfs/zfs.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied to staging/agust at denx.de, thanks!

Anatolij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-14 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-31 18:21 [U-Boot] [PATCH] fs: zfs: fix illegal use of fp Alejandro Mery
2012-11-01  9:56 ` Stefan Roese
2012-11-14 12:25 ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox