From patchwork Mon Jul 9 15:44:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 1173931 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B525440B21 for ; Mon, 9 Jul 2012 15:46:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751943Ab2GIPo2 (ORCPT ); Mon, 9 Jul 2012 11:44:28 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:55958 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751851Ab2GIPo2 (ORCPT ); Mon, 9 Jul 2012 11:44:28 -0400 Received: by mail-yx0-f174.google.com with SMTP id l2so10189699yen.19 for ; Mon, 09 Jul 2012 08:44:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:subject:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=MwZCHeQd2G9LL0hHCpFT2zXW0eW1Rq2r9tHDgZ2hZiY=; b=bm8zjS4GQg66NK7nw5JD9nbQc1/IBjhQPC7paPN5zR7cg8OlkiGXhKAV4tTczdPaDP 7t2Ef0yk2XWinzc0APdpKwMdrxAxuKzzrnlQfHTC/fnKP+bnuXbbPSWvKKlVjAnkvK32 LUO6GobNQfrlcCgeH8a1v3EZmk3cLSoTb3YHupuCejOWWqPme15hEo2LhlJ8xoFtJCCL /SYanddox6v/t3o41YDqilsbl/C32L9Ib2J9TPYayoYdMzPr3WMOMSh8+NCFzhNtd67M lb+oJJQC9AA6Sy4qdWSu1NFwnwoBBOOLAII2fLknUkbhWeFPIYcV1QACrPKlcPfw1JwF 8sVw== Received: by 10.50.184.133 with SMTP id eu5mr8731213igc.3.1341848667897; Mon, 09 Jul 2012 08:44:27 -0700 (PDT) Received: from degas.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id ay5sm9258625igb.15.2012.07.09.08.44.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jul 2012 08:44:27 -0700 (PDT) From: Chuck Lever Subject: [PATCH 05/14] NFS: nfs_getaclargs.acl_len is a size_t To: trond.myklebust@netapp.com Cc: linux-nfs@vger.kernel.org Date: Mon, 09 Jul 2012 11:44:26 -0400 Message-ID: <20120709154426.1604.72252.stgit@degas.1015granger.net> In-Reply-To: <20120709153355.1604.14102.stgit@degas.1015granger.net> References: <20120709153355.1604.14102.stgit@degas.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Squelch compiler warnings: fs/nfs/nfs4proc.c: In function ‘__nfs4_get_acl_uncached’: fs/nfs/nfs4proc.c:3811:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] fs/nfs/nfs4proc.c:3818:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Introduced by commit bf118a34 "NFSv4: include bitmap in nfsv4 get acl data", Dec 7, 2011. Signed-off-by: Chuck Lever --- fs/nfs/nfs4proc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index f368e37..7adb705 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -3792,7 +3792,8 @@ static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t bu .rpc_argp = &args, .rpc_resp = &res, }; - int ret = -ENOMEM, npages, i, acl_len = 0; + int ret = -ENOMEM, npages, i; + size_t acl_len = 0; npages = (buflen + PAGE_SIZE - 1) >> PAGE_SHIFT; /* As long as we're doing a round trip to the server anyway,