Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp466351ybl; Wed, 28 Aug 2019 00:11:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4yJCtgZfSk+CW4KpMas8lJVT/fm5hgMabBtvJ1AsvXD7NT9T1YyEgThkKByTs3wQ2FhUg X-Received: by 2002:a65:5c4b:: with SMTP id v11mr2243682pgr.62.1566976309764; Wed, 28 Aug 2019 00:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566976309; cv=none; d=google.com; s=arc-20160816; b=W+XqdVX8M+E58nXahvFs2iiq/PI8rCGd8n8mHQXQpsRoW4mZwF6xyDI+Ddns7tJiaa OyfukDn8VGhXGGENbA4J4mTGm6P4BiUR09s/URk75MzzPa3PyH/3p57/81+iKaiSq7f1 6UrX6KpSZqRSx5nWU3rjiyV21OeYSxaXFDNTu+RecglPpf8pD+rfbQ0/hesIrsKYINot 5a9g9WaRLlYyI28dretwmZQwn4ZZ9JK6BWIEHMcPVei/k4IRM1AJgZ4dzgGqTY+J6N2b ky1zduxF4YQoGFZ1wbvxG6nhpcprov+fwEe5QE/5s6/NST8i3taDVtNMba0pvP9qJb5p snQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=1d54FNDRbTuMEhWLgxs6sn6X+kyM4FlE9PwhjBe0F6Y=; b=UrT/GAxPjZ2uB2G6Qix42v5OUWaLS8xlvqXyhvwFMnIh1IZ9wwU1doHxkerxQphuA5 DNqWnjQ7xcYrRrqT4raf6mIZ8COUu5Vu3xkDVP6ISdkwPP9mdXhSMt5r8HSFnDhx76d1 UvMTRnk40UvPlAeyyyMBNt0nE7D6Wrz03wbDRl8OpDOmvDiVbpEcef9hDBYxMbjmCEdQ MWx87hKU7I2ybZDXz+Ku7mZpBRFjA1ylAO2m0I9IGzWped1Q03CX2baIPdb4nu4ixRje RHxdohalDFe1d4pPq42VyaAZ3qPGaPVe8WzJxjkGTD3tVRHVcaiBrCMchSQUsfuVxfaL K8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pks.im header.s=fm1 header.b=ebk9prBp; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=xamANkOE; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k30si1781843pfp.284.2019.08.28.00.11.24; Wed, 28 Aug 2019 00:11:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@pks.im header.s=fm1 header.b=ebk9prBp; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=xamANkOE; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbfH1HKh (ORCPT + 99 others); Wed, 28 Aug 2019 03:10:37 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60569 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbfH1HKh (ORCPT ); Wed, 28 Aug 2019 03:10:37 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5E96621B0E for ; Wed, 28 Aug 2019 03:10:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 28 Aug 2019 03:10:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=1d54FNDRbTuME hWLgxs6sn6X+kyM4FlE9PwhjBe0F6Y=; b=ebk9prBpjcpiH+QyA2UCWLoW+SzEK C2En8sCiQvEj+p8LmpGOC3nfelMBJe0B2aLaqRk1Rw64XpdK4WlGKcmpkYuKnrzR 2gzoLA02tXHu+76oiWl15HFpZsaL9yy3WEBfaO8wnKaWKmamlKFZ5nNU/XTTrFbR ncPLTfBALtJglLWze0i0VRKSuwTncTQUOjVtwoHzyjVRb3e4V1VWy/9z2TTzduxv W1PHLC5s5RdIJDZJidQFaaxiRPMaKKFeOY7bA3OiOpzBjFLPAJglRzNx6hciyT3m jftOGKzcp0m5FMI4/PaEGUlDkqu4M6QgF/xI0NhYfgUsIKwsepzLZDw1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=1d54FNDRbTuMEhWLgxs6sn6X+kyM4FlE9PwhjBe0F6Y=; b=xamANkOE LLQUyKPUna34hvKUoL8kVT6fDBB0TIuIybQWz9sAlEfxxmpdT+60FGPkdX0MGJeb toA9s/3uWBeTMlf0CL1FqBnO2z+N3eE6jBOSljYCoVTQqK1Xgu3zy/fcIjrh0orR eaPPh+AOY/K7zVO10eAKHHai1UbsPJ29qtM2/fbOZFi3VCoalGLlkjnIM/kS1pB3 /F14D0gAwmZ4+6JpkM1t/ieo0hps9VULZci87zXT9K8BSpCM64t4+uTvAVv+Uw6f m5bYU4Makmn/UWpaNulUGL0bI0WNwfmsxPtnsNVtxD2pFwHdglhiyo41paJp+Vg5 Dau2lL9hwNEvbQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudehledgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefrrghtrhhitghkucfuthgvihhnhhgrrhguthcuoehpshes phhkshdrihhmqeenucfkphepjeejrdduuddrudehhedrvdehheenucfrrghrrghmpehmrg hilhhfrhhomhepphhssehpkhhsrdhimhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from NSJAIL (x4d0b9bff.dyn.telefonica.de [77.11.155.255]) by mail.messagingengine.com (Postfix) with ESMTPA id CCF7ED6005F for ; Wed, 28 Aug 2019 03:10:35 -0400 (EDT) Received: from localhost (10.192.0.11 [10.192.0.11]) by NSJAIL (OpenSMTPD) with ESMTPSA id e21ee48a (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 28 Aug 2019 07:10:33 +0000 (UTC) From: Patrick Steinhardt To: linux-nfs@vger.kernel.org Cc: Patrick Steinhardt Subject: [PATCH 1/6] Annotate unused fields with UNUSED Date: Wed, 28 Aug 2019 09:10:12 +0200 Message-Id: <724274b0bf9340bc11f6741759ce1e43b82de7be.1566976047.git.ps@pks.im> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org There are some parameters that may be potentially unused. Add the UNUSED macro to avoid any warnings. Signed-off-by: Patrick Steinhardt --- support/misc/xstat.c | 3 ++- support/nfs/rpc_socket.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/support/misc/xstat.c b/support/misc/xstat.c index 4c997eea..661e29e4 100644 --- a/support/misc/xstat.c +++ b/support/misc/xstat.c @@ -9,6 +9,7 @@ #include #include +#include "nfslib.h" #include "xstat.h" #ifdef HAVE_FSTATAT @@ -66,7 +67,7 @@ statx_stat_nosync(int fd, const char *pathname, struct stat *statbuf, int flags) #else static int -statx_stat_nosync(int fd, const char *pathname, struct stat *statbuf, int flags) +statx_stat_nosync(int UNUSED(fd), const char *UNUSED(pathname), struct stat *UNUSED(statbuf), int UNUSED(flags)) { errno = ENOSYS; return -1; diff --git a/support/nfs/rpc_socket.c b/support/nfs/rpc_socket.c index bdf6d2f6..03048feb 100644 --- a/support/nfs/rpc_socket.c +++ b/support/nfs/rpc_socket.c @@ -41,6 +41,7 @@ #include #include "sockaddr.h" +#include "nfslib.h" #include "nfsrpc.h" #ifdef HAVE_LIBTIRPC @@ -519,7 +520,7 @@ CLIENT *nfs_get_priv_rpcclient(const struct sockaddr *sap, * Returns program number of first name to be successfully looked * up, or the default program number if all lookups fail. */ -rpcprog_t nfs_getrpcbyname(const rpcprog_t program, const char *table[]) +rpcprog_t nfs_getrpcbyname(const rpcprog_t program, const char *UNUSED(table[])) { #ifdef HAVE_GETRPCBYNAME struct rpcent *entry; -- 2.23.0