From patchwork Wed Jul 11 20:30:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 1185331 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 9182E3FC8F for ; Wed, 11 Jul 2012 20:30:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932365Ab2GKUae (ORCPT ); Wed, 11 Jul 2012 16:30:34 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:58468 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932350Ab2GKUae (ORCPT ); Wed, 11 Jul 2012 16:30:34 -0400 Received: by yenl2 with SMTP id l2so1690529yen.19 for ; Wed, 11 Jul 2012 13:30:34 -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=hGSWIkHZ8vcE+QreTCAjWIqn8gmTM4bU48ogkb2tylA=; b=ErQcTzgPOpIjMfPU0s4kuOJeF3NHEjvZGhadORaWMnbLxqhtgb9E3BXu0ffKexWfyt ySLPBCpqc2LkJqyOscif4bRO4Lz+Jr5y6OvTluiIC96U5vBLFgdLExNEyrsej5W2l6Sl G6gkRZkvMaq1oLdrTOtyGNg682MbzjPgaYsrf0h0Jc28XXgzWl0GKeG4+n32cLNtdgoM edqq6W8EljU99jLiy4C7+MMEt+XqYCLpKVeh/fXIBAkqkc4QGvd9od48Tgo+J6T1IqPm IPEjYW9/WgzZcWcY/GaVYcp+8NUs8TAOlAq2a3KfO+O9Gmy98LMN+y/26NkznpRcSNi5 19ug== Received: by 10.50.197.194 with SMTP id iw2mr15873334igc.31.1342038633736; Wed, 11 Jul 2012 13:30:33 -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 dw5sm15137733igc.6.2012.07.11.13.30.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jul 2012 13:30:33 -0700 (PDT) From: Chuck Lever Subject: [PATCH 06/15] NFS: nfs_getaclargs.acl_len is a size_t To: trond.myklebust@netapp.com Cc: linux-nfs@vger.kernel.org Date: Wed, 11 Jul 2012 16:30:32 -0400 Message-ID: <20120711203031.3767.87305.stgit@degas.1015granger.net> In-Reply-To: <20120711201718.3767.66867.stgit@degas.1015granger.net> References: <20120711201718.3767.66867.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 0d6da38..6444d27 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -3786,7 +3786,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,