Re: 2.3.51: NFSv3 uses multiplication with u64

From: Horst von Brand (vonbrand@pincoya.inf.utfsm.cl)
Date: Wed Mar 15 2000 - 10:54:39 EST


Horst von Brand <vonbrand@inf.utfsm.cl> said:
> The build of the kernel on SPARC fails when linking due to use of _muldi3
> in nfs3svc_encode_fsstatres (file fs/nfsd/nfs3xdr.c):

[...]

Dumb typo. Fixed patch is:

--- fs/nfsd/nfs3xdr.c.dist-2.3.51 Tue Mar 14 16:24:03 2000
+++ fs/nfsd/nfs3xdr.c Tue Mar 14 16:46:33 2000
@@ -773,9 +773,9 @@
         *p++ = xdr_zero; /* no post_op_attr */
 
         if (resp->status == 0) {
- p = xdr_encode_hyper(p, (u64) bs * s->f_blocks); /* total bytes */
- p = xdr_encode_hyper(p, (u64) bs * s->f_bfree); /* free bytes */- p = xdr_encode_hyper(p, bs * s->f_bavail); /* user available bytes */
+ p = xdr_encode_hyper(p, (u64) (bs * s->f_blocks)); /* total bytes */
+ p = xdr_encode_hyper(p, (u64) (bs * s->f_bfree)); /* free bytes */
+ p = xdr_encode_hyper(p, (u64) (bs * s->f_bavail)); /* user available bytes */
                 p = xdr_encode_hyper(p, s->f_files); /* total inodes */
                 p = xdr_encode_hyper(p, s->f_ffree); /* free inodes */
                 p = xdr_encode_hyper(p, s->f_ffree); /* user available inodes */

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:17 EST