From: Chuck Lever Subject: [PATCH 05/10] NFS: Fix compiler warnings in fs/nfs/callback_xdr.c Date: Fri, 25 May 2007 17:41:20 -0400 Message-ID: <20070525214120.28668.92981.stgit@schiele.1015granger.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: trond.myklebust@fys.uio.no Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1HrhXN-0003ye-2R for nfs@lists.sourceforge.net; Fri, 25 May 2007 14:41:32 -0700 Received: from flpi101.sbcis.sbc.com ([207.115.20.70]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HrhXP-0002UC-VB for nfs@lists.sourceforge.net; Fri, 25 May 2007 14:41:32 -0700 List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Signed-off-by: Chuck Lever --- fs/nfs/callback_xdr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index 849a202..d664193 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c @@ -139,7 +139,7 @@ static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compound if (unlikely(status != 0)) return status; /* We do not like overly long tags! */ - if (hdr->taglen > CB_OP_TAGLEN_MAXSZ-12 || hdr->taglen < 0) { + if (hdr->taglen > CB_OP_TAGLEN_MAXSZ - 12) { printk("NFSv4 CALLBACK %s: client sent tag of length %u\n", __FUNCTION__, hdr->taglen); return htonl(NFS4ERR_RESOURCE); @@ -379,7 +379,7 @@ static __be32 process_op(struct svc_rqst *rqstp, } maxlen = xdr_out->end - xdr_out->p; - if (maxlen > 0 && maxlen < PAGE_SIZE) { + if (maxlen > 0 && maxlen < (long) PAGE_SIZE) { if (likely(status == 0 && op->decode_args != NULL)) status = op->decode_args(rqstp, xdr_in, argp); if (likely(status == 0 && op->process_op != NULL)) ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs